187 starticon = wx.Image(Bpath("images", "icoplay24.png")) |
187 starticon = wx.Image(Bpath("images", "icoplay24.png")) |
188 stopicon = wx.Image(Bpath("images", "icostop24.png")) |
188 stopicon = wx.Image(Bpath("images", "icostop24.png")) |
189 |
189 |
190 class ParamsEntryDialog(wx.TextEntryDialog): |
190 class ParamsEntryDialog(wx.TextEntryDialog): |
191 if wx.VERSION < (2, 6, 0): |
191 if wx.VERSION < (2, 6, 0): |
192 def Bind(self, event, function, id = None): |
192 def Bind(self, event, function, id=None): |
193 if id is not None: |
193 if id is not None: |
194 event(self, id, function) |
194 event(self, id, function) |
195 else: |
195 else: |
196 event(self, function) |
196 event(self, function) |
197 |
197 |
198 def __init__(self, parent, message, caption = _("Please enter text"), defaultValue = "", |
198 def __init__(self, parent, message, caption=_("Please enter text"), defaultValue="", |
199 style = wx.OK|wx.CANCEL|wx.CENTRE, pos = wx.DefaultPosition): |
199 style=wx.OK|wx.CANCEL|wx.CENTRE, pos=wx.DefaultPosition): |
200 wx.TextEntryDialog.__init__(self, parent, message, caption, defaultValue, style, pos) |
200 wx.TextEntryDialog.__init__(self, parent, message, caption, defaultValue, style, pos) |
201 |
201 |
202 self.Tests = [] |
202 self.Tests = [] |
203 if wx.VERSION >= (2, 8, 0): |
203 if wx.VERSION >= (2, 8, 0): |
204 self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.GetAffirmativeId()) |
204 self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.GetAffirmativeId()) |