Bases: PyQt4.QtGui.QDialog
A generic dialog for choosing among a set of choices which are presented as an array of, each with a given pixmap.
The getChoice() static method is provided for convenience so that the dialog can be invoked wit a single line:
chosen,ok = GraphicalChoiceDlg.getChoice(parent, title, msg, choices, pixmaps, size, defpixmap, horizontalScrollBarPolicy, verticalScrollBarPolicy)
Static method which launches a GraphicalChoiceDlg with the given options and returns the result
Parameters: |
|
---|---|
Return type: | :class:~`tuple` <:class:~`str`, :class:~`bool`> |
Returns: | A tuple containing choice,ok. choice is the name of the chosen option. ok is true if the user pressed OK and false if the user pressed Cancel. |
returns the choice :rtype: :class:~`str` :return:
slot called when the user chooses an option
sets horizontal scrollbar policy of scrollArea
sets the text which is shown to the user in the dialog
sets vertical scrollbar policy of scrollArea