) |
A font selection dialog widget is displayed and the user is requested to select a font. Returns a font if the user exited the dialog with the OK button. Returns None if the user clicked CANCEL.
col=None,caption=None) |
col is the initial selection. If a valid color is selected, its string name is returned, usually as a hex #RRGGBB string. If the dialog is canceled, None is returned.
dialog,actions,default) |
dia is a dialog widget actions is a list of tuples (name,) or (name,function). If a function is specified, it will be executed on pressing the button. If no function is specified, and name is one of 'ok' or 'cancel' (case does not matter), the button will be bound to the dialog's 'accept' or 'reject' slot. default is the name of the action to set as the default.
message,level='info',choices=['OK'],timeout=None) |
The message box displays a text, an icon depending on the level (either 'about', 'info', 'warning' or 'error') and 1-3 buttons with the specified action text. The 'about' level has no buttons.
The function returns the text of the button that was clicked or an empty string is ESC was hit.
text,type=None,choices=['OK']) |
Possible choices are 'OK' and 'CANCEL'. The function returns True if the OK button was clicked or 'ENTER' was pressed, False if the 'CANCEL' button was pressed or ESC was pressed.
s) |
Text normalization removes all '&' characters and converts to lower case.