Provides a simple interface for the display of some basic dialogs to
collect information from the user.
This version uses Zenity to integrate well with GNOME. To pass
additional arguments to Zenity that are not specifically handled, use
keyword arguments. For example, to pass the --timeout argument to Zenity
pass timeout="15"
as one of the parameters. All
keyword arguments must be given as strings.
A note on exit codes: an exit code of 0 indicates that the user
clicked OK.
|
|
tuple(int, str)
|
|
tuple(int, str)
|
input_dialog(self,
title=' Enter a value ' ,
message=' Enter a value ' ,
default='
' ,
**kwargs)
Show an input dialog |
source code
|
|
tuple(int, str)
|
|
tuple(int, str)
|
list_menu(self,
options,
title=' Choose a value ' ,
message=' Choose a value ' ,
default=None,
**kwargs)
Show a single-selection list menu |
source code
|
|
tuple(int, str)
|
list_menu_multi(self,
options,
title=' Choose one or more values ' ,
message=' Choose one or more values ' ,
defaults=[ ] ,
**kwargs)
Show a multiple-selection list menu |
source code
|
|
tuple(int, str)
|
|
tuple(int, str)
|
|
tuple(int, str)
|
|
tuple(int, str)
|
calendar(self,
title=' Choose a date ' ,
format=' %Y-%m-%d ' ,
date=' today ' ,
**kwargs)
Show a calendar dialog |
source code
|
|