X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=search_tools.py;h=5a0984d47099fcd48d58923880d2f1423b1e3b9f;hp=ae0776f50e2fda092cc406b79b31573c52eaf4d6;hb=b5c29c4ff9eaa0979a0bb524d9395301c447783d;hpb=8fa853a25a9d62b1446e1bc543e5a3a4d0e03dcf diff --git a/search_tools.py b/search_tools.py index ae0776f..5a0984d 100644 --- a/search_tools.py +++ b/search_tools.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- #Author: Pierre Ratinaud #Copyright (c) 2011 Pierre Ratinaud -#Lisense: GNU/GPL +#License: GNU/GPL import wx from search_list import SearchList @@ -10,11 +10,13 @@ import codecs class SearchFrame(wx.Frame): - def __init__(self, parent, id, title, corpus, size=(800, 500)): + def __init__(self, parent, id, title, corpus, size=(800, 900)): # begin wxGlade: MyFrame.__init__ #kwds["style"] = wx.DEFAULT_FRAME_STYLE - wx.Frame.__init__(self, parent, id) + wx.Frame.__init__(self, parent, id, size = size, style = wx.CLOSE_BOX|wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL) self.parent = parent + self.ira = wx.GetApp().GetTopWindow() + self.SetIcon(self.ira._icon) search_id = wx.NewId() self.Bind(wx.EVT_MENU, self.onsearch, id = search_id) self.accel_tbl = wx.AcceleratorTable([(wx.ACCEL_CTRL, ord('F'), search_id)]) @@ -51,7 +53,7 @@ class SearchFrame(wx.Frame): self.Bind(wx.EVT_BUTTON, self.OnCloseMe, self.button_1) self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) self.SetTitle(u'Navigation') - self.SetSize(wx.Size(400,700)) + self.SetSize(wx.Size(900,700)) self.__do_layout() # end wxGlade @@ -77,7 +79,7 @@ class SearchFrame(wx.Frame): 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)