def onsearch(self, evt) :
self.dial = SearchDial(self, self, 0, True)
self.dial.CenterOnParent()
- self.dial.ShowModal()
- self.dial.Destroy()
+ self.dial.Show()
+ #self.dial.Destroy()
def OnRightClick(self, event):
def onsearch(self, evt) :
self.dial = SearchDial(self, self, 6, True)
self.dial.CenterOnParent()
- self.dial.ShowModal()
- self.dial.Destroy()
+ self.dial.Show()
+ #self.dial.Destroy()
def onsearchall(self, evt) :
if 'FrameSearch' not in dir(self.Source) :
self.Source.FrameSearch = SearchFrame(self.parent, -1, u"Rechercher...", self.Source.corpus)
self.dial = SearchDial(self, self.Source.FrameSearch.liste, 1, False)
self.dial.CenterOnParent()
- self.dial.ShowModal()
- self.dial.Destroy()
+ self.dial.Show()
+ #self.dial.Destroy()
def OnRightClick(self, event):
# begin wxGlade: MyFrame.__init__
wx.Frame.__init__(self, parent, id)
self.spanel = wx.ScrolledWindow(self, -1, style=wx.TAB_TRAVERSAL)
- self.sizer1 = wx.FlexGridSizer(len(result)+1,4,0,0)
+ self.sizer1 = wx.FlexGridSizer(0,4,0,0)
self.parent = parent
self.formes = {}
txt = [u'forme',u'classe',u'chi2',u'voir']
def OnCloseWindow(self, evt):
self.Destroy()
-class SearchDial ( wx.Dialog ):
+class SearchDial ( wx.Frame ):
def __init__( self, parent, listctrl, col, shown):
- wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE )
+ wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_FRAME_STYLE )
self.parent = parent
self.listctrl = listctrl
self.col = col
else :
sys.setdefaultencoding(locale.getpreferredencoding())
#chemin de l'application
-AppliPath = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
+try :
+ AppliPath = sys._MEIPASS
+except :
+ AppliPath = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
#chemin des images
ImagePath = os.path.join(AppliPath, 'images')
#configuration generale
ConfigPath = ConstructConfigPath(UserConfigPath)
-
langues = {'french' : wx.LANGUAGE_FRENCH,
'english' : wx.LANGUAGE_ENGLISH,}
#####################################################################
def onsearch(self, evt) :
self.dial = SearchDial(self, self, 0, True)
self.dial.CenterOnParent()
- self.dial.ShowModal()
- self.dial.Destroy()
+ self.dial.Show()
+ #self.dial.Destroy()
def OnRightClick(self, event):
if self.menu :
def onsearch(self, evt) :
if evt is not None :
self.dial = SearchDial(self, self.liste, 1, True)
- self.dial.ShowModal()
- self.dial.Destroy()
+ self.dial.Show()
+ #self.dial.Destroy()
else :
self.dial = SearchDial(self, self.liste, 1, False)
DATA_FILES=['configuration','Rscripts','images','dictionnaires','locale', 'Rlib','son_fin.wav', 'gpl-2.0.txt', 'gpl-2.0-fr.txt']
APP = ['iramuteq.py']
OPTIONS = {'argv_emulation': True,
- 'iconfile':('images/iraicone.icns')}
+ 'iconfile':('images/iraicone.icns'),
+ 'optimize': 1}
setup(
app=APP,