GUI programming question

Hal Burgiss hal at burgiss.net
Tue Feb 17 23:55:26 UTC 2009


On Tue, Feb 17, 2009 at 02:55:46PM +0000, WipeOut wrote:
> I have a small project that needs a simple GUI app developped to 
> simplify firing off complicated command lines..

[...]

> Whats the easiest way to do this for someone with very little 
> programming experience??

I'd look at the examples that come with gtkdialog. That sounds like it
would work. Also tcl/tk is a simple scripting language with GUI
widgets and runs fine in a Unix shell environment. It has its own
widgets so does not integrate with look and feel of gtk or kde.

Example  script:

#!/usr/bin/wish

set msg_color yellow
regsub -all {\/} $argv \n msgtext

wm title . HEY!
wm iconname . $msgtext 
message .m  -text $msgtext -relief groove -width 250 -pady 20 -padx 40 \
                 -aspect 100 -borderwidth 2

.m configure -background $msg_color
.  configure -background $msg_color 

button .b -text "OK" -command { exit } -pady 4
pack   .m .b

# eof

Its a little different than other languages but pretty capable for
scripting w/GUI ability.

-- 
Hal





More information about the ubuntu-users mailing list