
44 Perl/Tk Pocket Reference
-buttons => [@button_labels ]
A reference to a list of button label strings.
$dialog->Show(?-global ?);
Shows dialog and returns the selection as a string. The
grab is local unless -global is specified.
DialogBox
Dialog creates a modal dialog window with a message and
buttons and waits for a user response. Additionally it allows
any widget in the top frame.
-title => string
Title to display in the dialog’s decorative frame.
-text => string
Message to display in the dialog widget.
-bitmap => bitmap
Bitmap to display in the dialog.
-default_button => string
Text label of the button that is to display the default string.
-buttons => [@button_labels ]
A reference to a list of button label strings.
$dialog->add(widgetClass, ?options?);
Creates a widget of class widgetClass and add it to the dia-
logbox. Return the widget reference and Advertise it with
the name widgetClass.
$dialog->Show(?-global?);
Shows dialog and return the selection as a string. The grab
is local unless -global is specified.
-borderwidth -highlightthickness
-cursor -relief
-height -takefocus
-highlightbackground -width
-highlightcolor