class documentation

class InsertDateDialog(Dialog): (source)

View In Hierarchy

Dialog to insert a date-time in the page
Method __init__ Constructor.
Method do_response_ok Handler called when the user clicks the "OK" button (or an equivalent button)
Method load_file Undocumented
Method on_edit Undocumented
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_date Undocumented
Constant DATE_COL Undocumented
Constant FORMAT_COL Undocumented
Instance Variable buffer Undocumented
Instance Variable calendar Undocumented
Instance Variable date Undocumented
Instance Variable link Undocumented
Instance Variable linkbutton Undocumented
Instance Variable notebook Undocumented
Instance Variable page Undocumented
Instance Variable view Undocumented

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 do_response_cancel Handler called when the user clicks the "Cancel" button.
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 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 result result to be returned by run()
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, buffer, notebook, page): (source)
Constructor.
Parameters
parenteither a parent gtk widget or None. Only used to set the dialog on top of the right parent window
bufferUndocumented
notebookUndocumented
pageUndocumented
titlethe dialog title
buttons

a constant controlling what kind of buttons the dialog will have. One of:

  • None or Gtk.ButtonsType.NONE: for dialogs taking care of constructing the buttons themselves
  • Gtk.ButtonsType.OK_CANCEL: Render Ok and Cancel
  • Gtk.ButtonsType.CLOSE: Only set a Close button
buttona label to use instead of the default 'Ok' button
help_textset the help text, see add_help_text()
helppagename for a manual page, see set_help()
defaultwindowsizedefault window size in pixels
def do_response_ok(self): (source)
Handler called when the user clicks the "OK" button (or an equivalent button)
Returns
True if successfull and the dialog can close. Returns False if e.g. input is not valid, this will keep the dialog open.
Unknown Field: implementation
must be implemented by sub-classes that have an "OK" button
def load_file(self): (source)

Undocumented

def on_edit(self, button): (source)

Undocumented

def save_uistate(self): (source)
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.
Unknown Field: implementation
can be implemented by sub-classes that have some additional uistate to save
def set_date(self, date): (source)

Undocumented

DATE_COL: int = (source)

Undocumented

Value
1
FORMAT_COL: int = (source)

Undocumented

Value
0
buffer = (source)

Undocumented

calendar = (source)

Undocumented

date = (source)

Undocumented

link = (source)

Undocumented

linkbutton = (source)

Undocumented

notebook = (source)

Undocumented

page = (source)

Undocumented

view = (source)

Undocumented