summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/TreeWidget.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-11-30 19:04:07 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-11-30 19:04:07 (GMT)
commit672ce57100dac7035015d15cc2fa734a0c6c113e (patch)
tree1f0a2304a56ff6781ab955db33bcf2b741c067e5 /Lib/idlelib/TreeWidget.py
parentf4c4f115d80a26eb83d90593c24a1580f236c443 (diff)
downloadcpython-672ce57100dac7035015d15cc2fa734a0c6c113e.zip
cpython-672ce57100dac7035015d15cc2fa734a0c6c113e.tar.gz
cpython-672ce57100dac7035015d15cc2fa734a0c6c113e.tar.bz2
Convert some more 1/0 to True/False
Diffstat (limited to 'Lib/idlelib/TreeWidget.py')
-rw-r--r--Lib/idlelib/TreeWidget.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/TreeWidget.py b/Lib/idlelib/TreeWidget.py
index d713264..7ad4002 100644
--- a/Lib/idlelib/TreeWidget.py
+++ b/Lib/idlelib/TreeWidget.py
@@ -63,7 +63,7 @@ class TreeNode:
self.parent = parent
self.item = item
self.state = 'collapsed'
- self.selected = 0
+ self.selected = False
self.children = []
self.x = self.y = None
self.iconimages = {} # cache of PhotoImage instances for icons
@@ -90,7 +90,7 @@ class TreeNode:
if self.selected:
return
self.deselectall()
- self.selected = 1
+ self.selected = True
self.canvas.delete(self.image_id)
self.drawicon()
self.drawtext()
@@ -98,7 +98,7 @@ class TreeNode:
def deselect(self, event=None):
if not self.selected:
return
- self.selected = 0
+ self.selected = False
self.canvas.delete(self.image_id)
self.drawicon()
self.drawtext()