summaryrefslogtreecommitdiffstats
path: root/library/demos/msgbox.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'library/demos/msgbox.tcl')
-rw-r--r--library/demos/msgbox.tcl14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/demos/msgbox.tcl b/library/demos/msgbox.tcl
index 51efde6..a8f7d17 100644
--- a/library/demos/msgbox.tcl
+++ b/library/demos/msgbox.tcl
@@ -6,6 +6,9 @@ if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
}
+package require Tk
+package require Ttk
+
set w .msgbox
catch {destroy $w}
toplevel $w
@@ -16,13 +19,10 @@ positionWindow $w
label $w.msg -font $font -wraplength 4i -justify left -text "Choose the icon and type option of the message box. Then press the \"Message Box\" button to see the message box."
pack $w.msg -side top
-frame $w.buttons
-pack $w.buttons -side bottom -fill x -pady 2m
-button $w.buttons.dismiss -text Dismiss -command "destroy $w"
-button $w.buttons.code -text "See Code" -command "showCode $w"
-button $w.buttons.vars -text "Message Box" \
- -command "showMessageBox $w"
-pack $w.buttons.dismiss $w.buttons.code $w.buttons.vars -side left -expand 1
+pack [addSeeDismiss $w.buttons $w {} {
+ ttk::button $w.buttons.vars -text "Message Box" -command "showMessageBox $w"
+}] -side bottom -fill x
+#pack $w.buttons.dismiss $w.buttons.code $w.buttons.vars -side left -expand 1
frame $w.left
frame $w.right