![]() |
![]()
| ![]() |
![]()
NAMETk::Dialog - Create modal dialog and wait for a response. SYNOPSIS$dialog = $parent->Dialog(-option => value, ... ); DESCRIPTIONThis procedure is part of the Tk script library - its arguments describe a dialog box. After creating a dialog box, Dialog waits for the user to select one of the Buttons either by clicking on the Button with the mouse or by typing return to invoke the default Button (if any). Then it returns the text string of the selected Button. While waiting for the user to respond, Dialog sets a local grab. This prevents the user from interacting with the application in any way except to invoke the dialog box. See the Show() method. OPTIONSThe following option/value pairs are supported:
METHODS
ADVERTISED WIDGETSBecause Tk::Dialog is a subclass of Tk::DialogBox it inherits all the advertised subwidgets of its superclass: e.g. "B_button-text", where 'button-text' is a Button's -text value. Additionally, Tk::Dialog advertises: EXAMPLE$dialog = $mw->Dialog(-text => 'Save File?', -bitmap => 'question', -title => 'Save File Dialog', -default_button => 'Yes', -buttons => [qw/Yes No Cancel/); KEYWORDSbitmap, dialog, modal, messageBox
|