class documentation

class EditTableDialog(Dialog): (source)

View In Hierarchy

Graphical dialog for the user, where a new table can be created or an existing one can be modified Here columns can be added / modified and titles be managed.
Class Col No summary
Method __init__ No summary
Method autosave_title_cell Saving cell, in case of editing it and then do not close it, but do another action, like closing window
Method do_response_cancel Dialog Window is closed with "Cancel"
Method do_response_ok Dialog Window is closed with "OK"
Method on_add_new_column Trigger for adding a new column into the table / it is a new row in the treeview
Method on_alignment_changed Trigger for align-option (selectionbox with icon and alignment as text)
Method on_cell_changed Trigger after cell-editing, to transform text-field data into right format
Method on_cell_editing_started Trigger before cell-editing, to transform text-field data into right format
Method on_delete_column Trigger for deleting a column out of the table / it is a deleted row in the treeview
Method on_move_column Trigger for moving a column one position left/right) - it is a movement up/down in the treeview
Method on_wrap_toggled Trigger for wrap-option (enable/disable)
Method selection_info Info-Popup for selecting a cell before this action can be done
Instance Variable currently_edited Undocumented
Instance Variable default_column_item Undocumented
Instance Variable result Undocumented
Instance Variable treeview Undocumented
Method _button_box No summary
Method _prepare_liststore Preparation of liststore to show a treeview, that displays the columns of the table :param definition: tuple of (ids, headers, wraps, aligns) :return:liststore
Method _prepare_treeview_with_headcolumn_list Preparation of the treeview element, that displays the columns of the table :param liststore: model for current treeview :return: the treeview

Inherited from Dialog:

Class Method unique No summary
Method add_extra_button No summary
Method add_form Convenience method to construct a form with input widgets and add them to the dialog. See InputForm.add_inputs() for details.
Method add_help_text Adds a label with an info icon in front of it. Intended for informational text in dialogs. @param text: help text
Method add_text Adds a label to the dialog Also see add_help_text() for another style option. @param text: dialog text
Method assert_response_ok No summary
Method do_response Undocumented
Method get_input Method used in test suite to get "interactive" inputs
Method get_input_enabled Undocumented
Method on_destroy Undocumented
Method present Undocumented
Method response_ok Trigger the response signal with response type 'OK'.
Method run Wrapper for Gtk.Dialog.run(), also calls show_all() @returns: self.result
Method save_uistate Method when the dialog is about to exit or hide and wants to save the uistate. Sub-classes implementing this method should use it to set additional state parameter in self.uistate.
Method set_help Set the name of the manual page with help for this dialog. Setting this will add a "help" button to the dialog. @param pagename: the manual page name
Method set_input No summary
Method show Undocumented
Method show_all Undocumented
Method show_help Show a help page @param page: the manual page, if None the page as set with set_help() is used
Instance Variable destroyed when True the dialog is already destroyed
Instance Variable form InputForm added by add_form()
Instance Variable help_page Undocumented
Instance Variable uistate ConfigDict to store state of the dialog, persistent per notebook. The size and position of the dialog are stored as automatically in this dict already.
Instance Variable vbox Gtk.VBox for main widgets of the dialog
Instance Variable _no_ok_action Undocumented

Inherited from ConnectorMixin (via Dialog):

Method connectto Connect to signals of another object E.g.:
Method connectto_all Convenience method to combine multiple calls to connectto().
Method disconnect_all Disconnect all signals that have been connected with connectto and friends. Typically called when you want to destroy this object.
Method disconnect_from Disc all signals that have been connected with connectto and friends to a specific object.
Method _disconnect_from Undocumented
Instance Variable _connected_signals Undocumented
def __init__(self, parent, definition=None): (source)
Constructor, which intializes the dialog window :param parent: :param definition: tuple of (ids, headers, wraps, aligns) :return:
def autosave_title_cell(self): (source)
Saving cell, in case of editing it and then do not close it, but do another action, like closing window
def do_response_cancel(self): (source)
Dialog Window is closed with "Cancel"
def do_response_ok(self): (source)
Dialog Window is closed with "OK"
def on_add_new_column(self, btn): (source)
Trigger for adding a new column into the table / it is a new row in the treeview
def on_alignment_changed(self, renderer, path, comboiter, model): (source)
Trigger for align-option (selectionbox with icon and alignment as text)
def on_cell_changed(self, renderer, path, text, model, colid): (source)
Trigger after cell-editing, to transform text-field data into right format
def on_cell_editing_started(self, renderer, editable, path, model, colid): (source)
Trigger before cell-editing, to transform text-field data into right format
def on_delete_column(self, btn): (source)
Trigger for deleting a column out of the table / it is a deleted row in the treeview
def on_move_column(self, btn, direction): (source)
Trigger for moving a column one position left/right) - it is a movement up/down in the treeview
def on_wrap_toggled(self, renderer, path, model, colid): (source)
Trigger for wrap-option (enable/disable)
def selection_info(self): (source)
Info-Popup for selecting a cell before this action can be done
currently_edited = (source)

Undocumented

default_column_item = (source)

Undocumented

result = (source)

Undocumented

treeview = (source)

Undocumented

def _button_box(self): (source)

Panel which includes buttons for manipulating the current treeview:

  • add / delete
  • move up / move down row :return: vbox-panel
def _prepare_liststore(self, definition): (source)
Preparation of liststore to show a treeview, that displays the columns of the table :param definition: tuple of (ids, headers, wraps, aligns) :return:liststore
def _prepare_treeview_with_headcolumn_list(self, liststore): (source)
Preparation of the treeview element, that displays the columns of the table :param liststore: model for current treeview :return: the treeview