Ejemplo n.º 1
0
    def _edit_account(self):
        acc, model, iter = self._get_selected_account()
        if iter != None:
            d = AccountDialog(self._window, acc)

            if d.run() == Gtk.ResponseType.OK:
                model.set_value(iter, 2, acc.name)
Ejemplo n.º 2
0
	def _edit_account(self):
		acc, model, iter = self._get_selected_account()
		if iter != None:
			d = AccountDialog(self._window, acc)
			
			if d.run() == 1:
				model.set_value(iter, 2, acc.name)
Ejemplo n.º 3
0
    def _on_btn_add_account_clicked(self, widget):
        acc = Account(enabled=True)
        d = AccountDialog(self._window, acc)

        if d.run() == Gtk.ResponseType.OK:
            self._accountman.add(acc)

            row = [acc, acc.enabled, acc.name]
            iter = self._liststore_accounts.append(row)
            model = self._treeview_accounts.get_model()
            path = model.get_path(iter)
            self._treeview_accounts.set_cursor(path, None, False)
            self._treeview_accounts.grab_focus()
Ejemplo n.º 4
0
	def _on_btn_add_account_clicked(self, widget):
		acc = Account(enabled = True)
		d = AccountDialog(self._window, acc)
	
		if d.run() == 1:
			self._accountman.add(acc)
			
			row = [acc, acc.enabled, acc.name]
			iter = self._liststore_accounts.append(row)
			model = self._treeview_accounts.get_model()
			path = model.get_path(iter)
			self._treeview_accounts.set_cursor(path, None, False)
			self._treeview_accounts.grab_focus()