self.panel_1.SetScrollRate(20, 20)
def __do_layout(self):
- log.info('do layout')
self.sizer_1 = wx.BoxSizer(wx.VERTICAL)
self.sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
self.sizer_3 = wx.BoxSizer(wx.VERTICAL)
if self.conf['type'] == 'corpus' :
corpus = self.opencorpus()
elif self.conf['corpus'] in self.parent.history.corpus :
- print 'corpus in history.corpus'
if self.conf['uuid'] in self.parent.history.analyses :
intree = True
else :
corpus.make_lems(True)
else :
corpus.make_lems(False)
- self.doopen(corpus)
if not intree :
- self.parent.tree.AddAnalyse(self.conf)
+ self.parent.tree.AddAnalyse(self.conf, bold = True)
else :
- print 'passe apr la'
- print self.parent.tree.GiveFocus(uuid = self.conf['uuid'], bold = True)
+ self.parent.tree.GiveFocus(uuid = self.conf['uuid'], bold = True)
+ self.doopen(corpus)
else :
corpus = None
self.parent.history.addtab(self.conf)
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)
if bold :
self.SetItemBold(child, True)
- return 'kool'
- self.GiveFocus(child, uuid)
+ return
+ self.GiveFocus(child, uuid, bold)
child, cookie = self.GetNextChild(itemParent, cookie)
- return 'pas kool'
def OnRightDown(self, event):