summaryrefslogtreecommitdiffstats
path: root/library/demos/widget
diff options
context:
space:
mode:
Diffstat (limited to 'library/demos/widget')
-rw-r--r--library/demos/widget19
1 files changed, 10 insertions, 9 deletions
diff --git a/library/demos/widget b/library/demos/widget
index 8a180df..ec964f9 100644
--- a/library/demos/widget
+++ b/library/demos/widget
@@ -11,7 +11,7 @@ exec wish "$0" "$@"
# ".tcl" files is this directory, which are sourced by this script
# as needed.
#
-# RCS: @(#) $Id: widget,v 1.27 2004/11/08 21:57:53 dkf Exp $
+# RCS: @(#) $Id: widget,v 1.28 2006/09/11 14:41:04 das Exp $
package require Tcl 8.5
package require Tk 8.5
@@ -99,26 +99,27 @@ image create photo ::img::print -height 19 -format GIF -data {
#----------------------------------------------------------------
menu .menuBar -tearoff 0
-# This is a tk-internal procedure to make i18n easier
-::tk::AmpMenuArgs .menuBar add cascade -label [mc "&File"] -menu .menuBar.file
-menu .menuBar.file -tearoff 0
-# On the Mac use the specia .apple menu for the about item
+# On the Mac use the special .apple menu for the about item
if {[tk windowingsystem] eq "aqua"} {
.menuBar add cascade -menu .menuBar.apple
menu .menuBar.apple -tearoff 0
.menuBar.apple add command -label [mc "About..."] -command {aboutBox}
} else {
+ # This is a tk-internal procedure to make i18n easier
+ ::tk::AmpMenuArgs .menuBar add cascade -label [mc "&File"] \
+ -menu .menuBar.file
+ menu .menuBar.file -tearoff 0
::tk::AmpMenuArgs .menuBar.file add command -label [mc "&About..."] \
-command {aboutBox} -accelerator [mc "<F1>"]
.menuBar.file add sep
+ ::tk::AmpMenuArgs .menuBar.file add command -label [mc "&Quit"] \
+ -command {exit} -accelerator [mc "Meta-Q"]
+ bind . <[mc "Meta-q"]> {exit}
+ bind . <F1> {aboutBox}
}
-::tk::AmpMenuArgs .menuBar.file add command -label [mc "&Quit"] \
- -command {exit} -accelerator [mc "Meta-Q"]
. configure -menu .menuBar
-bind . <F1> {aboutBox}
-bind . <[mc "Meta-q"]> {exit}
frame .statusBar
label .statusBar.lab -text " " -relief sunken -bd 1 \