Class s.g.b.l.AdditionListSlave(GladeSlaveDelegate):

Part of stoqlib.gui.base.lists View In Hierarchy

A slave that offers a simple list and its management.
Method __init__ Creates a new AdditionListSlave object
Method _setup_klist Undocumented
Method _update_sensitivity Undocumented
Method _edit_model Undocumented
Method _edit Undocumented
Method _clear Undocumented
Method get_items Undocumented
Method get_columns Undocumented
Method run_editor This can be overriden to provide a custom run_dialog line,
Method delete_model Deletes a model, can be overridden in subclass
Method register_editor_kwargs Undocumented
Method get_selection Undocumented
Method hide_add_button Undocumented
Method hide_edit_button Undocumented
Method hide_del_button Undocumented
Method set_editor Undocumented
Method on_klist__row_activated Undocumented
Method on_klist__selection_changed Undocumented
Method on_add_button__clicked Undocumented
Method on_edit_button__clicked Undocumented
Method on_delete_button__clicked Undocumented
def __init__(self, conn, columns=None, editor_class=None, klist_objects=None, visual_mode=False):
Creates a new AdditionListSlave object
Parametersconna connection
columnscolumn definitions (type: sequence of kiwi.ui.widgets.list.Columns )
editor_classthe window that is going to be open when user clicks on add_button or edit_button.
(type: editor_class: a stoqlib.gui.editors.BaseEditor subclass )
klist_objectsinitial objects to insert into the list
def _setup_klist(self, klist_objects):
Undocumented
def _update_sensitivity(self, *args):
Undocumented
def _edit_model(self, model=None):
Undocumented
def _edit(self):
Undocumented
def _clear(self):
Undocumented
def get_items(self):
Undocumented
def get_columns(self):
Undocumented
def run_editor(self, model):
This can be overriden to provide a custom run_dialog line, or a conversion function for the model
def delete_model(self, model):
Deletes a model, can be overridden in subclass
Parametersmodelmodel to delete
def register_editor_kwargs(self, **kwargs):
Undocumented
def get_selection(self):
Undocumented
def hide_add_button(self):
Undocumented
def hide_edit_button(self):
Undocumented
def hide_del_button(self):
Undocumented
def set_editor(self, editor_class):
Undocumented
def on_klist__row_activated(self, *args):
Undocumented
def on_klist__selection_changed(self, *args):
Undocumented
def on_add_button__clicked(self, button):
Undocumented
def on_edit_button__clicked(self, button):
Undocumented
def on_delete_button__clicked(self, button):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.