X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=tree.py;h=83f7d6ee0a1285da942f4ab66e7d22e2a9f770fa;hp=2bbe02be167d28a3497a4d4233fd3dbe08f7f5a0;hb=40a9e657272652691979c8b19365a70b8700aebf;hpb=b4590888f7037335fa0aece7e288ae1ebc02aa96 diff --git a/tree.py b/tree.py index 2bbe02b..83f7d6e 100644 --- a/tree.py +++ b/tree.py @@ -686,7 +686,7 @@ class LeftTree(CT.CustomTreeCtrl): corpus = self.page.corpus tgenpath = os.path.join(self.page.parametres['pathout'], 'tgen.csv') if not os.path.exists(tgenpath) : - message = wx.MessageDialog(self.parent, _(u"No TGen yet !"), style = wx.ICON_EXCLAMATION | wx.OK) + message = wx.MessageDialog(self.parent, _(u"No TGen yet !").decode('utf8'), style = wx.ICON_EXCLAMATION | wx.OK) message.ShowModal() message.Destroy() else : @@ -726,7 +726,7 @@ class LeftTree(CT.CustomTreeCtrl): else : name = 'name' oldname = pydata[name] - dlg = wx.TextEntryDialog(self, "Please Enter The New Item Name", 'Item Naming', oldname) + dlg = wx.TextEntryDialog(self, _("New Name").decode('utf8'), _(u'Rename').decode('utf8'), oldname) if dlg.ShowModal() == wx.ID_OK: newname = dlg.GetValue() dlg.Destroy() @@ -1093,11 +1093,15 @@ class LeftTree(CT.CustomTreeCtrl): if pydata is not None : if 'corpus_name' in pydata or 'corpus' in pydata : - self.ira.ShowMenu('text', True) self.ira.ShowMenu('matrix', False) + self.ira.ShowMenu('text', True) if 'matrix_name' in pydata or 'matrix' in pydata: self.ira.ShowMenu('text', False) - self.ira.ShowMenu('matrix', True) + self.ira.ShowMenu('matrix', True) + if 'uuid' in pydata : + if pydata['uuid'] in ['textroot', 'matroot'] : + self.ira.ShowMenu('text', False) + self.ira.ShowMenu('matrix', False) self.pydata = pydata if pydata['uuid'] in self.parent.history.opened : for i in range(self.parent.nb.GetPageCount()) :