k.u.dialogs : module documentation

Part of kiwi.ui

No module docstring
Class HIGAlertDialog Undocumented
Class BaseDialog Undocumented
Function messagedialog Create and show a MessageDialog.
Function error Undocumented
Function info Undocumented
Function warning Undocumented
Function yesno Undocumented
Function open Displays an open dialog.
Function selectfolder Displays a select folder dialog.
Function ask_overwrite Undocumented
Function save Displays a save dialog.
Function password Shows a password dialog and returns the password entered in the dialog
Function _simple Undocumented
Function _test Undocumented
def messagedialog(dialog_type, short, long=None, parent=None, buttons=gtk.BUTTONS_OK, default=-1):
Create and show a MessageDialog.
Parametersdialog_typeone of constants
  • gtk.MESSAGE_INFO
  • gtk.MESSAGE_WARNING
  • gtk.MESSAGE_QUESTION
  • gtk.MESSAGE_ERROR
shortA header text to be inserted in the dialog.
longA long description of message.
parentThe parent widget of this dialog (type: a gtk.Window subclass )
buttonsThe button type that the dialog will be display, one of the constants:
  • gtk.BUTTONS_NONE
  • gtk.BUTTONS_OK
  • gtk.BUTTONS_CLOSE
  • gtk.BUTTONS_CANCEL
  • gtk.BUTTONS_YES_NO
  • gtk.BUTTONS_OK_CANCEL

or a tuple or 2-sized tuples representing label and response. If label is a stock-id a stock icon will be displayed.

defaultoptional default response id
def _simple(type, short, long=None, parent=None, buttons=gtk.BUTTONS_OK, default=-1):
Undocumented
def error(short, long=None, parent=None, buttons=gtk.BUTTONS_OK, default=-1):
Undocumented
def info(short, long=None, parent=None, buttons=gtk.BUTTONS_OK, default=-1):
Undocumented
def warning(short, long=None, parent=None, buttons=gtk.BUTTONS_OK, default=-1):
Undocumented
def yesno(text, parent=None, default=gtk.RESPONSE_YES, buttons=gtk.BUTTONS_YES_NO):
Undocumented
def open(title='', parent=None, patterns=None, folder=None, filter=None):
Displays an open dialog.
Parameterstitlethe title of the folder, defaults to 'Select folder'
parentparent gtk.Window or None
patternsa list of pattern strings ['*.py', '*.pl'] or None
folderinitial folder or None
filtera filter to use or None, is incompatible with patterns
def selectfolder(title='', parent=None, folder=None):
Displays a select folder dialog.
Parameterstitlethe title of the folder, defaults to 'Select folder'
parentparent gtk.Window or None
folderinitial folder or None
def ask_overwrite(filename, parent=None):
Undocumented
def save(title='', parent=None, current_name='', folder=None):
Displays a save dialog.
def password(primary='', secondary='', parent=None):
Shows a password dialog and returns the password entered in the dialog
Parametersprimaryprimary text
secondarysecondary text
parenta gtk.Window subclass or None
Returnsthe password or None if none specified (type: string or None )
def _test():
Undocumented
API Documentation for Kiwi, generated by pydoctor at 2010-05-20 02:10:57.