Progaramming: how to add a gui front end to a CL command?

Mike Peters mike at ice2o.com
Sun Aug 5 22:14:13 UTC 2007


On Sun, 05 Aug 2007 17:29:18 -0400
Pete Holsberg <pjh42 at pobox.com> wrote:

> It seems to me that it should be fairly simple to add a GUI front end
> to a command. Does anyone have a reference (witj examples) for me?
> 
> Thanks.
> 
This is probably most simply achieved with Zenity or Dialog. You can
find tutorials/examples here:

Dialog: http://www.linuxjournal.com/node/2807/print
Zenity:
http://linux.byexamples.com/archives/259/a-complete-zenity-dialog-examples-1/

If you want more flexibility, you could go for Python and Tkinter:

http://www.pythonware.com/library/tkinter/introduction/index.htm

Python is fairly simple to learn if you don't know it already and
Tkinter is usually bundled with Python and is simple to use for a
simple GUI. 

There are many other Python GUI frameworks but many are probably
overkill for adding a simple GUI to a command. However the majority are
listed here:

http://wiki.python.org/moin/GuiProgramming

HTH
-- 
Mike
Web Site: http://www.ice2o.com
Photos: http://www.flickr.com/photos/mikedpeters/
Registered Linux User #247123

The most happy marriage I can imagine to myself would be the union
of a deaf man to a blind woman.
		-- Samuel Taylor Coleridge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070805/07863c8d/attachment.pgp>


More information about the ubuntu-users mailing list