"I have a gub" - Woody Allen
Stu 2008-11-13
Gub is a simple GUI builder that takes a simple spec and generates GUI code.
TkGub is an interactive GUI builder based on Gub.
Inspired by cool web tools like build-html or build-regexp as-you-type, I (initially) threw this together.
JBR - Here is something similar Laying out widgets in a grid
Stu 2008-11-13 They're both in a highly raw, experimental and possibly volatile state right now.
No docs - the source and screenshot should help get you on your way - have fun! ;)
Stu 2008-12-20 New version 0.2 with full complement of widgets and more/improved functionality.
The screenshot is a bit dated now but is still a working example.
Stu 2008-12-29 Version 0.3.
Some notes about Gub:
Gub generates code.
Gub is a learning tool.
Gub requires knowing what you're doing.
Gub is a minimal and fast notation for describing (parts of) GUIs.
Gub currently works fairly well. Nested frames are still buggy and the row/columnconfigures aren't exactly right either. As I continue to actually attempt to use Gub in other programs, it is subject to change based on my needs and whims (probably a good thing :).
The screenshot is less applicable to the current state of Gub so it's now a link instead of an inline image.
http://img249.imageshack.us/img249/7812/gubscrld0.png
Gobs (a 'gob' being what you feed to Gub):
a)
b e b b b b b
b)
f b e b b f b b b
c)
b bqb .b -text moo -bg red .b2 -text cow .bq -bg green
d)
# TkGub test gui f t sv sh .t -width 20 .t -height 10 .s1 -orient horizontal :s0 -sticky ns :s1 -sticky ew :t0,f0 |f0 -f0 |. -. ^sv t0 =sh t0 # end
Twig for 'd':