chiark / gitweb /
build system: debian/copyright file
[chiark-tcl-applet.git] / example
diff --git a/example b/example
index bd05b1787c97e1eac55a04fbd26b9e3586f40613..7cf6b15111ecee755463996772bece81ca484260 100755 (executable)
--- a/example
+++ b/example
@@ -1,13 +1,26 @@
-#!/usr/bin/wish8.4 -f
+#!/usr/bin/wish -f
 # -*- Tcl -*-
 
+# Copyright 2016,2020 Ian Jackson
+# SPDX-License-Identifier: GPL-3.0-or-later
+# There is NO WARRANTY.
+
 # usage:
-#  xbatmon-simple-tray
+#   .../example program arguments...
+# will run
+#   program arguments... WINDOWID
+# and program sbould put up an X11 window as a child of WINDOWID
+#
+# eg, for a silly example:
+#   .../example xterm -id
+
+set lib .
 
-source applet.tcl
-source subproc.tcl
+source $lib/applet.tcl
+source $lib/subproc.tcl
+source $lib/utils.tcl
 
-applet::setup-debug puts
+set debug::debug puts
 
 foreach b {1 3} {
     applet::setup-button-menu $b