source | issues

pygtkhelpers.ui.dialogs

Dialog helpers

largely inspired by kiwi.ui.dialogs

copyright:2009-2010 by pygtkhelpers Authors
license:LGPL 2 or later (see README/COPYING/LICENSE)
pygtkhelpers.ui.dialogs.error

Show an error dialog, see simple() parameters

pygtkhelpers.ui.dialogs.info

Show an info dialog, see simple() parameters

pygtkhelpers.ui.dialogs.open_filechooser(title, parent=None, patterns=None, folder=None, filter=None, _before_run=None, action=None)

an open dialog :param parent: window or None :param patterns: file match patterns :param folder: initial folder :param filter: file filter

use of filter and patterns at the same time is invalid

pygtkhelpers.ui.dialogs.save(title='Save', parent=None, current_name='', folder=None, _before_run=None, _before_overwrite=None)

Displays a save dialog.

pygtkhelpers.ui.dialogs.simple(type, short, long=None, parent=None, buttons=<enum GTK_BUTTONS_OK of type GtkButtonsType>, default=None, **kw)

A simple dialog

Parameters:
  • type – The type of dialog
  • short – The short description
  • long – The long description
  • parent – The parent Window to make this dialog transient to
  • buttons – A buttons enum
  • default – A default response
pygtkhelpers.ui.dialogs.warning

Show a warning dialog, see simple() parameters

pygtkhelpers.ui.dialogs.yesno
A yes/no question dialog, see simple() parameters