projects
/
iramuteq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
...
[iramuteq]
/
tree.py
diff --git
a/tree.py
b/tree.py
index
0009136
..
0d1aa3f
100644
(file)
--- a/
tree.py
+++ b/
tree.py
@@
-244,17
+244,21
@@
class LeftTree(CT.CustomTreeCtrl):
self.CloseItem(child, uuid)
child, cookie = self.GetNextChild(itemParent, cookie)
self.CloseItem(child, uuid)
child, cookie = self.GetNextChild(itemParent, cookie)
- def GiveFocus(self, itemParent = None, uuid = None) :
+ def GiveFocus(self, itemParent = None, uuid = None
, bold = False
) :
if itemParent is None :
itemParent = self.root
child, cookie = self.GetFirstChild(itemParent)
if itemParent is None :
itemParent = self.root
child, cookie = self.GetFirstChild(itemParent)
+ print child, cookie
while child :
pydata = self.GetPyData(child)
if pydata['uuid'] == uuid :
self.SelectItem(child)
while child :
pydata = self.GetPyData(child)
if pydata['uuid'] == uuid :
self.SelectItem(child)
- break
+ if bold :
+ self.SetItemBold(child, True)
+ return 'kool'
self.GiveFocus(child, uuid)
child, cookie = self.GetNextChild(itemParent, cookie)
self.GiveFocus(child, uuid)
child, cookie = self.GetNextChild(itemParent, cookie)
+ return 'pas kool'
def OnRightDown(self, event):
def OnRightDown(self, event):