mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Convert some more 1/0 to True/False
This commit is contained in:
parent
f4c4f115d8
commit
672ce57100
2 changed files with 14 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue