summaryrefslogtreecommitdiffstats
path: root/tkcon/pkgIndex.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tkcon/pkgIndex.tcl')
-rw-r--r--tkcon/pkgIndex.tcl11
1 files changed, 11 insertions, 0 deletions
diff --git a/tkcon/pkgIndex.tcl b/tkcon/pkgIndex.tcl
new file mode 100644
index 0000000..431442a
--- /dev/null
+++ b/tkcon/pkgIndex.tcl
@@ -0,0 +1,11 @@
+# pkgIndex.tcl to use tkcon as a package via 'package require tkcon'
+#
+# 'tkcon show' will do all that is necessary to display tkcon
+#
+# Defaults to:
+# * the main interp as the "slave"
+# * hiding tkcon when you click in the titlebar [X]
+# * using '.tkcon' as the root toplevel
+# * not displaying itself at 'package require' time
+#
+package ifneeded tkcon 2.7 [list source [file join $dir tkcon.tcl]]