summaryrefslogtreecommitdiffstats
path: root/library/demos/rolodex
diff options
context:
space:
mode:
Diffstat (limited to 'library/demos/rolodex')
-rw-r--r--library/demos/rolodex10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/demos/rolodex b/library/demos/rolodex
index 50ac590..8941570 100644
--- a/library/demos/rolodex
+++ b/library/demos/rolodex
@@ -8,6 +8,8 @@ exec wish "$0" ${1+"$@"}
# feel of a rolodex program, although it's lifeless and doesn't
# actually do the rolodex application.
+package require Tk
+
foreach i [winfo child .] {
catch {destroy $i}
}
@@ -41,6 +43,10 @@ pack .buttons.clear .buttons.add .buttons.search .buttons.delete \
# Phase 1: Add menus, dialog boxes
#------------------------------------------
+# DKF - note that this is an old-style menu bar; I just have not yet
+# got around to converting the context help code to work with the new
+# menu system and its <<MenuSelect>> virtual event.
+
frame .menu -relief raised -borderwidth 1
pack .menu -before .frame -side top -fill x
@@ -192,3 +198,7 @@ set helpTopics(version) "This is version $version."
-underline 3
.menu.help.m add command -label "On Version..." -command {Help version} \
-underline 3
+
+# Local Variables:
+# mode: tcl
+# End: