X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=example;h=7cf6b15111ecee755463996772bece81ca484260;hb=9ab567c4ba2e3627372f9b39733297ac3df93fb4;hp=2d07e86d135c6cb5a952452febc8c9f1af4c86e0;hpb=2e355f70ace81b18ef77f3fdc45f347326165c08;p=chiark-tcl-applet.git diff --git a/example b/example index 2d07e86..7cf6b15 100755 --- a/example +++ b/example @@ -1,12 +1,24 @@ -#!/usr/bin/wish8.4 -f +#!/usr/bin/wish -f # -*- Tcl -*- -# usage: -# xbatmon-simple-tray +# Copyright 2016,2020 Ian Jackson +# SPDX-License-Identifier: GPL-3.0-or-later +# There is NO WARRANTY. -source applet.tcl -source subproc.tcl -source utils.tcl +# usage: +# .../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 $lib/applet.tcl +source $lib/subproc.tcl +source $lib/utils.tcl set debug::debug puts