Package kiwi :: Package ui :: Module dialogs
[frames | no frames]

Module kiwi.ui.dialogs

Classes
BaseDialog  
HIGAlertDialog  

Function Summary
  _(m)
kiwi
  ask_overwrite(filename, parent)
  error(short, long, parent, buttons, default)
  info(short, long, parent, buttons, default)
  messagedialog(dialog_type, short, long, parent, buttons, default)
Create and show a MessageDialog.
  open(title, parent, patterns, folder, filter)
Displays an open dialog.
string or None password(primary, secondary, parent)
Shows a password dialog and returns the password entered in the dialog
  save(title, parent, current_name, folder)
Displays a save dialog.
  warning(short, long, parent, buttons, default)
  yesno(text, parent, default, buttons)

Function Details

_(m)

kiwi

messagedialog(dialog_type, short, long=None, parent=None, buttons=<Fake gtk.BUTTONS_OK>, default=-1)

Create and show a MessageDialog.
Parameters:
dialog_type - one of constants
  • gtk.MESSAGE_INFO
  • gtk.MESSAGE_WARNING
  • gtk.MESSAGE_QUESTION
  • gtk.MESSAGE_ERROR
short - A header text to be inserted in the dialog.
long - A long description of message.
parent - The parent widget of this dialog
           (type=a gtk.Window subclass)
buttons - The 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.
default - optional default response id

open(title='', parent=None, patterns=[], folder=None, filter=None)

Displays an open dialog.
Parameters:
title -
parent -
patterns -
folder -
filter -

password(primary='', secondary='', parent=None)

Shows a password dialog and returns the password entered in the dialog
Parameters:
primary - primary text
secondary - secondary text
parent - a gtk.Window subclass or None
Returns:
the password or None if none specified
           (type=string or None)

save(title='', parent=None, current_name='', folder=None)

Displays a save dialog.

Generated by Epydoc 2.1 on Tue Feb 6 10:53:33 2007 http://epydoc.sf.net