|
def | __init__ (self, parent=None, **kw) |
|
def | buttonCommand (self, value, event=None) |
|
def | cleanup (self) |
|
def | configureDialog (self) |
|
def | destroy (self) |
|
def | hide (self) |
|
def | setMessage (self, message) |
|
def | show (self) |
|
def | clearGeom (self) |
|
def | clearImage (self) |
|
def | clearText (self) |
|
def | setGeom (self, geom=None) |
|
def | setImage (self, image=None) |
|
def | setText (self, text=None) |
|
def | copyOptions (self, other) |
|
def | disableEdit (self) |
|
def | editStart (self, event) |
|
def | editStop (self, event) |
|
def | enableEdit (self) |
|
def | frameInitialiseFunc (self) |
|
def | getBounds (self, state=0) |
|
def | getCenter (self) |
|
def | getFrameType (self, state=0) |
|
def | getHeight (self) |
|
def | getWidth (self) |
|
def | guiDragTask (self, state) |
|
def | guiScaleTask (self, state) |
|
def | printConfig (self, indent=0) |
|
def | resetFrameSize (self) |
|
def | setBorderUvWidth (self) |
|
def | setBorderWidth (self) |
|
def | setFrameColor (self) |
|
def | setFrameSize (self, fClearFrame=0) |
|
def | setFrameTexture (self) |
|
def | setFrameVisibleScale (self) |
|
def | setProp (self, propString, value) |
|
def | setRelief (self, fSetStyle=1) |
|
def | setState (self) |
|
def | taskName (self, idString) |
|
def | uniqueName (self, idString) |
|
def | updateFrameStyle (self) |
|
def | __init__ (self) |
|
def | __setitem__ (self, key, value) |
|
def | addoptions (self, optionDefs, optionkeywords) |
|
def | bind (self, event, command, extraArgs=[]) |
|
def | cget (self, option) |
|
def | component (self, name) |
|
def | components (self) |
|
def | configure (self, option=None, **kw) |
|
def | createcomponent (self, componentName, componentAliases, componentGroup, widgetClass, *widgetArgs, **kw) |
|
def | defineoptions (self, keywords, optionDefs, dynamicGroups=()) |
|
def | destroycomponent (self, name) |
|
def | hascomponent (self, component) |
|
def | initialiseoptions (self, myClass) |
|
def | isinitoption (self, option) |
|
def | options (self) |
|
def | postInitialiseFunc (self) |
|
def | unbind (self, event) |
|
def __init__ |
( |
|
self, |
|
|
|
parent = None , |
|
|
** |
kw |
|
) |
| |
Creates a popup dialog to alert and/or interact with user.
Some of the main keywords that can be used to customize the dialog:
Parameters:
text (str): Text message/query displayed to user
geom: Geometry to be displayed in dialog
buttonTextList: List of text to show on each button
buttonGeomList: List of geometry to show on each button
buttonImageList: List of images to show on each button
buttonValueList: List of values sent to dialog command for
each button. If value is [] then the ordinal rank of
the button is used as its value.
buttonHotKeyList: List of hotkeys to bind to each button.
Typing the hotkey is equivalent to pressing the
corresponding button.
suppressKeys: Set to true if you wish to suppress keys
(i.e. Dialog eats key event), false if you wish Dialog
to pass along key event.
buttonSize: 4-tuple used to specify custom size for each
button (to make bigger then geom/text for example)
pad: Space between border and interior graphics
topPad: Extra space added above text/geom/image
midPad: Extra space added between text/buttons
sidePad: Extra space added to either side of text/buttons
buttonPadSF: Scale factor used to expand/contract button
horizontal spacing
command: Callback command used when a button is pressed.
Value supplied to command depends on values in
buttonValueList.
Note:
The number of buttons on the dialog depends on the maximum
length of any button[Text|Geom|Image|Value]List specified.
Values of None are substituted for lists that are shorter
than the max length
Reimplemented from DirectFrame.
Reimplemented in RetryCancelDialog, YesNoCancelDialog, YesNoDialog, OkCancelDialog, and OkDialog.