mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Remove some old debugging print statements.
This commit is contained in:
parent
4ada7ad3bc
commit
5e65ce671c
1 changed files with 0 additions and 10 deletions
|
@ -139,9 +139,7 @@ class EditorWindow:
|
||||||
if self.ispythonsource(filename):
|
if self.ispythonsource(filename):
|
||||||
self.color = color = self.ColorDelegator()
|
self.color = color = self.ColorDelegator()
|
||||||
per.insertfilter(color)
|
per.insertfilter(color)
|
||||||
##print "Initial colorizer"
|
|
||||||
else:
|
else:
|
||||||
##print "No initial colorizer"
|
|
||||||
self.color = None
|
self.color = None
|
||||||
|
|
||||||
self.undo = undo = self.UndoDelegator()
|
self.undo = undo = self.UndoDelegator()
|
||||||
|
@ -459,7 +457,6 @@ class EditorWindow:
|
||||||
def addcolorizer(self):
|
def addcolorizer(self):
|
||||||
if self.color:
|
if self.color:
|
||||||
return
|
return
|
||||||
##print "Add colorizer"
|
|
||||||
self.per.removefilter(self.undo)
|
self.per.removefilter(self.undo)
|
||||||
self.color = self.ColorDelegator()
|
self.color = self.ColorDelegator()
|
||||||
self.per.insertfilter(self.color)
|
self.per.insertfilter(self.color)
|
||||||
|
@ -468,7 +465,6 @@ class EditorWindow:
|
||||||
def rmcolorizer(self):
|
def rmcolorizer(self):
|
||||||
if not self.color:
|
if not self.color:
|
||||||
return
|
return
|
||||||
##print "Remove colorizer"
|
|
||||||
self.per.removefilter(self.undo)
|
self.per.removefilter(self.undo)
|
||||||
self.per.removefilter(self.color)
|
self.per.removefilter(self.color)
|
||||||
self.color = None
|
self.color = None
|
||||||
|
@ -759,7 +755,6 @@ class EditorWindow:
|
||||||
text = self.text
|
text = self.text
|
||||||
text.keydefs = keydefs
|
text.keydefs = keydefs
|
||||||
for event, keylist in keydefs.items():
|
for event, keylist in keydefs.items():
|
||||||
##print>>sys.__stderr__, "event, list: ", event, keylist
|
|
||||||
if keylist:
|
if keylist:
|
||||||
apply(text.event_add, (event,) + tuple(keylist))
|
apply(text.event_add, (event,) + tuple(keylist))
|
||||||
|
|
||||||
|
@ -772,7 +767,6 @@ class EditorWindow:
|
||||||
defs = self.Bindings.menudefs
|
defs = self.Bindings.menudefs
|
||||||
if keydefs is None:
|
if keydefs is None:
|
||||||
keydefs = self.Bindings.default_keydefs
|
keydefs = self.Bindings.default_keydefs
|
||||||
##print>>sys.__stderr__, "*keydefs: " , keydefs
|
|
||||||
menudict = self.menudict
|
menudict = self.menudict
|
||||||
text = self.text
|
text = self.text
|
||||||
for mname, itemlist in defs:
|
for mname, itemlist in defs:
|
||||||
|
@ -788,7 +782,6 @@ class EditorWindow:
|
||||||
if checkbutton:
|
if checkbutton:
|
||||||
label = label[1:]
|
label = label[1:]
|
||||||
underline, label = prepstr(label)
|
underline, label = prepstr(label)
|
||||||
##print>>sys.__stderr__, "*Event: " , event
|
|
||||||
accelerator = get_accelerator(keydefs, event)
|
accelerator = get_accelerator(keydefs, event)
|
||||||
def command(text=text, event=event):
|
def command(text=text, event=event):
|
||||||
text.event_generate(event)
|
text.event_generate(event)
|
||||||
|
@ -798,9 +791,6 @@ class EditorWindow:
|
||||||
command=command, accelerator=accelerator,
|
command=command, accelerator=accelerator,
|
||||||
variable=var)
|
variable=var)
|
||||||
else:
|
else:
|
||||||
##print>>sys.__stderr__, "label, ul, cmd, accel: ",
|
|
||||||
## label, underline, command,
|
|
||||||
## accelerator
|
|
||||||
menu.add_command(label=label, underline=underline,
|
menu.add_command(label=label, underline=underline,
|
||||||
command=command,
|
command=command,
|
||||||
accelerator=accelerator)
|
accelerator=accelerator)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue