equal
deleted
inserted
replaced
30 class FindInPouDialog(wx.Dialog): |
30 class FindInPouDialog(wx.Dialog): |
31 |
31 |
32 def _init_icon(self, parent): |
32 def _init_icon(self, parent): |
33 if parent and parent.icon: |
33 if parent and parent.icon: |
34 self.SetIcon(parent.icon) |
34 self.SetIcon(parent.icon) |
35 |
|
36 |
35 |
37 def __init__(self, parent): |
36 def __init__(self, parent): |
38 wx.Dialog.__init__(self, parent, title=_("Find"), |
37 wx.Dialog.__init__(self, parent, title=_("Find"), |
39 style=wx.CAPTION|wx.CLOSE_BOX|wx.CLIP_CHILDREN|wx.RESIZE_BORDER) |
38 style=wx.CAPTION|wx.CLOSE_BOX|wx.CLIP_CHILDREN|wx.RESIZE_BORDER) |
40 |
39 |
121 main_sizer.Fit(self) |
120 main_sizer.Fit(self) |
122 |
121 |
123 # clear message after dialog size calculation |
122 # clear message after dialog size calculation |
124 self.SetStatusText("") |
123 self.SetStatusText("") |
125 |
124 |
126 |
|
127 self.ParentWindow = parent |
125 self.ParentWindow = parent |
128 |
126 |
129 self.Bind(wx.EVT_CLOSE, self.OnCloseFrame) |
127 self.Bind(wx.EVT_CLOSE, self.OnCloseFrame) |
130 self.infosPrev = {} |
128 self.infosPrev = {} |
131 self.criteria = {} |
129 self.criteria = {} |