The Pod window - 1.1
a new kind of toplevel window.
Table Of Contents
INTRO
With the Pod command you can:
- create a new kind of toplevl windows
- transform an existing toplevel window in a Pod-window.
For full details read the documentation :
Pod is a pure-tcl widget, running (with some limitations) on any platform
- Windows : fully tested.
- Mac / Unix : some troubles with some incoherent wm commands ....
SCREENSHOTS
- Output from demo01.tcl. Note the 3rd semi-transparent Pod
- After adapting an existing app: A Toy Piano
Pod adapt . -bg darkred
- - After adapting an existing app: Kandinsky dance
Pod adapt . -bg #333388
EXAMPLE
Create a new Pod
package require Pod
Pod .myPod -bg orange
or you can transform (adapt) an existing toplevel:
toplevel .myWin
button .myWin.b1 -text "A Button"
pack .myWin.b1 -fill x
package require Pod
Pod adapt .myWin -bg lightblue
# some adjustments
.myWin configure -pady 20
wm geometry .myWin 200x120+100+100
DEMOS
Run files in demo directory ..
Just for running demos, you are not requested to install this package within the tcl standard library path.
DOWNLOAD
Pod 1.1
REQUIRED PACKAGES
- tcl-tk - v.8.4.14 or higher (required support for "wm attributes $window -transparent $color" command).
Note that the "wm overrideredirect .." command is rather clumsy or limited under Unix/Mac. For example, under Mac,
it is impossible to hide the window decoration after the toplevel has been once mapped ...
INSTALLATION
Pod should be installed under standard library path.
HISTORY
- 1.0
- 1.0.1
- FIX: -padx -pady options were not initialized (causing errors on
"$win configure -padx ..." )
No change on docs.
- 1.1
- The behaviour of dragging has been changed.
Now you can start dragging the whole Pod by simply pressing Button-1 over ANY
point inside the Pod, PROVIDED THAT the cursor is not over an internal widget
having its own bindings with Button-1 (e.g. scrollbars, buttons, ....).
More precise specification in Pod Reference
AUTHOR
Copyright (c) 2007 <Irrational Numbers>
For comments and suggestions, please write to : <aldo.buratti@tiscali.it>