def showConfigDialog(self): configDialog = ConfigDialog(self, self.config) configDialog.setModal(True) configDialog.show() if configDialog.result() == 0: self.mainFileBrowser.setRootPath(self.config.rootpath) self.svn.initSVNList()
def osd(self): global ProfileName, Host, portValue, keepValue, clientids, user, password, visionValue, cleanssionValue, napsBooL, pascheck dialog = ConfigDialog(self) result = dialog.exec_() for x in range(len(childlist)): childlist.remove(childlist[0]) if result: ProfileName, Host, portValue, keepValue, clientids, user, password, visionValue, cleanssionValue, napsBooL, pascheck = dialog.getsetdata( ) print ProfileName, Host, portValue, keepValue, clientids, user, password, visionValue, cleanssionValue, napsBooL, pascheck self.nameEdit.setText(ProfileName) dialog.destroy()
def ConfigDialog(self, event=None): dlg = ConfigDialog.ConfigDialog( self, -1, "Configuration", size=(350, 200), #style = wxCAPTION | wxSYSTEM_MENU | wxTHICK_FRAME style=wx.DEFAULT_DIALOG_STYLE) dlg.CenterOnScreen() # this does not return until the dialog is closed. val = dlg.ShowModal() dlg.Destroy()
def OnConfigEdit(self, event): dlg = ConfigDialog(self, -1, "Configuration", self.dm) if dlg.ShowModal() == wx.ID_OK: self.dm.SaveToConfig() pass