def slotNewGame(self): if self.new_game_dir_dialog is None: main_dosbox_path = self.myconfig.get('dosbox', 'main_dosbox_path') dlg = KDirSelectDialog(main_dosbox_path, 0, self) dlg.connect(dlg, SIGNAL('okClicked()'), self.new_game_path_selected) dlg.connect(dlg, SIGNAL('cancelClicked()'), self.destroy_new_game_dir_dlg) dlg.connect(dlg, SIGNAL('closeClicked()'), self.destroy_new_game_dir_dlg) dlg.show() self.new_game_dir_dialog = dlg else: KMessageBox.error(self, opendlg_errormsg)
def _select_import_export_directory(self, action): default_path = path(self.app.cfg.get('database', 'default_path')).expand() win = KDirSelectDialog(default_path, False, self) win.connect(win, SIGNAL('okClicked()'), self._import_export_directory_selected) win.db_action = action win.show() self._import_export_dirsel_dialog = win
def _select_import_export_directory(self, action): if self._import_export_dirsel_dialog is None: default_db_path = path(self.app.cfg.get('database', 'default_path')).expand() win = KDirSelectDialog(default_db_path, False, self) win.connect(win, SIGNAL('okClicked()'), self._import_export_directory_selected) self._connect_destroy_dialog(win) win.db_action = action win.show() self._import_export_dirsel_dialog = win else: KMessageBox.error(self, 'This dialog is already open, or bug in code.')
def _select_import_export_directory(self, action): if self._import_export_dirsel_dialog is None: default_db_path = path(self.app.cfg.get('database', 'default_path')).expand() win = KDirSelectDialog(default_db_path, False , self) win.connect(win, SIGNAL('okClicked()'), self._import_export_directory_selected) self._connect_destroy_dialog(win) win.db_action = action win.show() self._import_export_dirsel_dialog = win else: KMessageBox.error(self, 'This dialog is already open, or bug in code.')