X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=dialog.py;h=111e0c0f9ae5a8ce8bd4fa1ecd0b5012c8235916;hp=9d166c3963f1648b540406f4f21a5806277dac5a;hb=2bf97d0e39a717a1cfcddee72f4d5fe544282228;hpb=e950507e6d72b808f1f06131eaa561676eb27fad diff --git a/dialog.py b/dialog.py index 9d166c3..111e0c0 100755 --- a/dialog.py +++ b/dialog.py @@ -1564,7 +1564,7 @@ class FindInCluster(wx.Frame): class SearchDial ( wx.Frame ): def __init__( self, parent, listctrl, col, shown): - wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_FRAME_STYLE ) + wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP ) self.parent = parent self.listctrl = listctrl self.col = col @@ -2263,9 +2263,9 @@ class ChiDialog(wx.Dialog): class CorpusPref ( wx.Dialog ): def __init__( self, parent, parametres ): - wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = _(u"Settings").decode('utf8'), pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE ) + wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = _(u"Settings").decode('utf8'), pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE | wx.STAY_ON_TOP ) self.parent = parent - langues_n = [u'français', u'english', u'german (expérimentale)', u'italian', u'swedish (expérimentale)', u'portuguese (expérimentale)', u'spanish (expérimentale)', u'greek (expériementale)', u'galician (expérimentale)', u'autre...'] + langues_n = [u'français', u'english', u'german (expérimentale)', u'italian', u'swedish (expérimentale)', u'portuguese', u'spanish (expérimentale)', u'greek (expériementale)', u'galician (expérimentale)', u'autre...'] self.langues = [u'french', u'english', u'german', u'italian', u'swedish', u'portuguese', u'spanish', u'greek', u'galician', u'other'] self.encodages = [enc[0].lower() for enc in encodages] @@ -2600,10 +2600,11 @@ class ConcordList(wx.HtmlListBox): class message(wx.Frame): def __init__(self, parent, items, title, size, save = True, uceids = None): - wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = title, pos = wx.DefaultPosition, size = size, style = wx.DEFAULT_FRAME_STYLE ) + wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = title, pos = wx.DefaultPosition, size = size, style = wx.CLOSE_BOX|wx.DEFAULT_FRAME_STYLE|wx.FRAME_FLOAT_ON_PARENT|wx.TAB_TRAVERSAL ) self.save = save self.uceids = uceids - self.ira = wx.GetApp().GetTopWindow() + self.ira = wx.GetApp().GetTopWindow() + self.SetIcon(self.ira._icon) self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize ) self.items = items self.html = "" @@ -2793,44 +2794,6 @@ class ExtractDialog ( wx.Dialog ): def __del__( self ): pass -# class FreqDialog(wx.Dialog): -# def __init__(self, parent, ID, listcol, title, size) : -# wx.Dialog.__init__(self, parent, ID, title, size=size, pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE | wx.CANCEL | wx.OK ) -# pre = wx.PreDialog() -# pre.SetExtraStyle(wx.DIALOG_EX_CONTEXTHELP) -# pre.Create(parent, ID, title, wx.DefaultPosition, size, wx.DEFAULT_DIALOG_STYLE | wx.CANCEL | wx.OK) -# self.PostCreate(pre) -# self.parent = parent -# sizer = wx.BoxSizer(wx.VERTICAL) -# #self.content = parent.content -# self.header = listcol -# #LABELLIST = [] -# #for i in self.header: -# # forme = i -# # if len(forme) > 60 : -# # LABELLIST.append(i[0:60]) -# # else: -# # LABELLIST.append(i) -# self.list_box_1 = wx.ListBox(self, -1, choices=self.header, style=wx.LB_EXTENDED | wx.LB_HSCROLL) -# sizer.Add(self.list_box_1, 0, 5) -# -# btnsizer = wx.BoxSizer(wx.HORIZONTAL) -# -# btn = wx.Button(self, wx.ID_CANCEL) -# btnsizer.Add(btn) -# -# btn = wx.Button(self, wx.ID_OK) -# btn.SetDefault() -# btnsizer.Add(btn) -# -# sizer.Add(btnsizer, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL, 5) -# self.SetSizer(sizer) -# sizer.Fit(self) -# self.SetTitle(_(u"Selection").decode('utf8')) -# - # end wxGlade - - class FreqDialog ( wx.Dialog ): def __init__( self, parent, listcol, title, size = wx.Size( -1,-1 ), showNA = True): @@ -3202,7 +3165,9 @@ class BarGraphDialog ( wx.Dialog ): class MessageImage(wx.Frame): def __init__(self, parent, parametres, title, size): - wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = title, pos = wx.DefaultPosition, size = size, style = wx.DEFAULT_FRAME_STYLE ) + wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = title, pos = wx.DefaultPosition, size = size, style = wx.CLOSE_BOX|wx.DEFAULT_FRAME_STYLE|wx.FRAME_FLOAT_ON_PARENT|wx.TAB_TRAVERSAL ) + self.ira = wx.GetApp().GetTopWindow() + self.SetIcon(self.ira._icon) self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize ) self.parametres = parametres self.imageFile = self.parametres['tmpgraph']