def onEditSkkey(self,e): dlg = selectKey(self.SKkey.GetValue(),0) res = dlg.ShowModal() if res == wx.OK: key = dlg.selected_key.replace(':','.') self.SKkey.SetValue(key) dlg.Destroy()
def onEditSkkey(self, e): key = self.SKkey.GetValue() dlg = selectKey(key, 'self') res = dlg.ShowModal() if res == wx.OK: key = dlg.selected_key self.SKkey.SetValue(key) dlg.Destroy()
def onEditSkkey(self,e): oldkey = False if self.skkey.GetValue(): oldkey = self.skkey.GetValue() dlg = selectKey(oldkey,1) res = dlg.ShowModal() if res == wx.OK: self.skkey.SetValue(dlg.selected_key) self.vessel.SetValue(dlg.selected_vessel) dlg.Destroy()
def onEditSkkey(self, e): key = self.skkey.GetValue() dlg = selectKey(key) res = dlg.ShowModal() if res == wx.ID_OK: key = dlg.keys_list.GetValue() if '*' in key: wildcard = dlg.wildcard.GetValue() if wildcard: if not re.match('^[0-9a-zA-Z]+$', wildcard): self.ShowMessage( _('Failed. * must contain only allowed characters.' )) dlg.Destroy() return key = key.replace('*', wildcard) else: self.ShowMessage( _('Failed. You have to provide a name for *.')) dlg.Destroy() return dlg.Destroy() self.skkey.SetValue(key)