Module s.g.b.dialogs

Part of stoqlib.gui.base

Basic dialogs definition
Class Warnbox Undocumented
Class RunnableView A mixin class for any View or GladeDelegate that offers run/close
Class AbstractDialog Abstract Dialog class that defines a simple run API.
Class BasicDialog Abstract class that offers a Dialog with two buttons. It should be
Class BasicPluggableDialog Abstract class for Pluggable*Dialog; two buttons and a slave area
Class BasicWrappingDialog Abstract class for Wrapping*Dialog; run and set_transient_for to
Class ConfirmDialog Dialog offers an option to confirm or cancel an event. It prints text
Class NotifyDialog Dialog that notifies an event. It prints text in a label and offers a
Function get_current_toplevel Undocumented
Function add_current_toplevel Undocumented
Function _pop_current_toplevel Undocumented
Function get_dialog Returns a dialog.
Function run_dialog Runs a dialog and return the return value of it.
Function notify_if_raises Undocumented
Class DialogSystemNotifier Undocumented
def get_current_toplevel():
Undocumented
@argcheck(gtk.Window)
def add_current_toplevel(toplevel):
Undocumented
def _pop_current_toplevel():
Undocumented
def get_dialog(parent, dialog, *args, **kwargs):

Returns a dialog.

  • parent: the window which is opening the dialog;
  • dialog: the dialog class or instance;
  • *args, **kwargs: the arguments which should be used on dialog instantiation;
def run_dialog(dialog, *args, parent=None, **kwargs):
Runs a dialog and return the return value of it. If dialog is a class it will be instantiated before running the dialog.
Parametersdialogthe dialog, could be a class or instance
parentparent of the dialog
argscustom positional argument
kwargscustom keyword arguments
def notify_if_raises(win, check_func, exceptions=ModelDataError, text='An error ocurred: %s'):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.