X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=iramuteq.py;h=157c0d6bec32ceb70fb3087e8e52550c20a62b0f;hp=ea92ad507b109642f427098247c5588e92a85d63;hb=46fe1c98d3c43f5bce9d8acb6d0ee24b5299fd85;hpb=98bb81e8b6020fdaecdaaed835148ab86d9da728 diff --git a/iramuteq.py b/iramuteq.py index ea92ad5..157c0d6 100644 --- a/iramuteq.py +++ b/iramuteq.py @@ -182,6 +182,8 @@ images_analyses = { 'simimatrix' : 'simimatrix.png', 'simiclustermatrix' : 'simimatrix.png', 'proto' : 'proto.png', + 'TXM' : 'TXM.png', + 'europress' : 'europress.png', } ##################################################################### @@ -254,11 +256,11 @@ class IraFrame(wx.Frame): file_menu.AppendMenu(-1, _(u"Import from factiva").decode('utf8'), menuFactiva) item = wx.MenuItem(file_menu, ID_ImportTXM, _(u"Import from TXM").decode('utf8'), _(u"Import from TXM").decode('utf8')) - item.SetBitmap(wx.ArtProvider_GetBitmap(wx.ART_FILE_OPEN)) + item.SetBitmap(self.images_analyses['TXM']) file_menu.AppendItem(item) item = wx.MenuItem(file_menu, ID_ImportEuro, _(u"Import from Europress").decode('utf8'), _(u"Import from Europress").decode('utf8')) - item.SetBitmap(wx.ArtProvider_GetBitmap(wx.ART_FILE_OPEN)) + item.SetBitmap(self.images_analyses['europress']) file_menu.AppendItem(item) menuTools = wx.Menu() @@ -716,8 +718,9 @@ class IraFrame(wx.Frame): def OnOpenAnalyse(self, event): self.AnalysePath = OnOpen(self, "Analyse") - OpenAnalyse(self, self.AnalysePath[1][0], True) - self.ShowMenu('view') + if self.AnalysePath : + OpenAnalyse(self, self.AnalysePath[1][0], True) + self.ShowMenu('view') def OnOpenText(self, event): inputname, self.input_path = OnOpen(self, "Texte")