Ejemplo n.º 1
0
 def toolbar_button_pressed(self, button, data):
     row = None
     if data == "new":
         if self.dialogs["new"] is None:
             row = self.cursor.select()[0]
             self._make_dialog("new", row, self.add_new_record)
     elif data == "edit":
         if self.dialogs["edit"] is None:
             row = get_single_row(self.listbox, self._pkey)
             if row is not None:
                 self._make_dialog("edit", row, self.edit_record, row[self._pkey])
Ejemplo n.º 2
0
 def toolbar_button_pressed(self, button, data):
     row = None
     if data == 'new':
         if self.dialogs['new'] is None:
             row = self.cursor.select()[0]
             self._make_dialog('new', row, self.add_new_record)
     elif data == 'edit':
         if self.dialogs['edit'] is None:
             row = get_single_row(self.listbox, self._pkey)
             if row is not None:
                 self._make_dialog('edit', row, self.edit_record,
                                   row[self._pkey])
Ejemplo n.º 3
0
 def src_profile_selected(self, button):
     row = get_single_row(self.dialogs['copy'], 'profile')
Ejemplo n.º 4
0
 def db_command(self, menuitem, command):
     row = get_single_row(self.listbox, 'a database')
     if row is not None:
         if command == 'connect':
             dbname = row[0]
             self._connect(dbname)
Ejemplo n.º 5
0
 def src_profile_selected(self, button):
     row = get_single_row(self.dialogs['copy'], 'profile')
Ejemplo n.º 6
0
 def db_command(self, menuitem, command):
     row = get_single_row(self.listbox, "a database")
     if row is not None:
         if command == "connect":
             dbname = row[0]
             self._connect(dbname)