Home | Trees | Indices | Help |
---|
|
python_qt_binding.QtGui.QDialog --+ | ButtonSetPopupSelector
An interactive dialog that displays successive sets of buttons. When each set is displayed, user may ask for the next available set, the previous. already seen set, or the user may accept the currently displayed set. A cancel is available as well.
The call and return protocol is as follows:
|
|||
|
|||
int |
|
||
[ButtonProgram] |
|
||
[string] |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
If the prior initialization revealed that the caller does not deliver any sets of button labels at all, then return -1, without displaying any dialog.
|
Returns an array of ButtonProgram instances that are currently showing on the dialog, or were showing when the user clicked OK.
|
Returns an array of labels of buttons that are currently showing on the dialog, or were showing when the user clicked OK.
|
Responsible for displaying the next, or previous set of buttons. During successive calls to this method, the method obtains new button label sets from the caller's iterator until the iterator is exhausted. The sets are collected in <code>self.shownLabelArrays</code>. The method is also responsible for showing previously shown sets again. The direction is controlled by the handlers of the Previous and Next buttons. They set instance variable <code>currentNextPrevDirection</code>. |
Given a button set number, displays a help text in the 'pick button set' dialog.
|
Cleans out the dialog's layout. Does not destroy the control buttons (Next, Previous, Cancel, and OK), but does trigger deletion of all the button objects in the button grid. Attempts to None out references to UI widgets to enable garbage collection. |
Constructs one set of buttons, based on passed in button labels.
|
Appends the existing Next/Previous/Cancel/OK buttons into the passed-in layout.
|
Examines the instance variables <code>shownLabelArrays</code> and </code>currentlyShowingSetIndex</code> to determine whether the Next or Previous buttons should be enabled. Acts on the result. |
Handler for Next button clicks. Triggers show of next button set in order. |
Handler for Next button clicks. Triggers show of previous button set in order. |
Called when no button sets are available from the caller at all. Records this event in instance variable <code>noAvailableSets</code>, and returns. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 26 18:08:31 2012 | http://epydoc.sourceforge.net |