Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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.')
Exemplo n.º 4
0
 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.')