easy gui

Matthew Gillen me at mattgillen.net
Wed Mar 14 12:08:35 EDT 2007


Stephen Adler wrote:
> Matthew Gillen wrote:
>> Stephen Adler wrote:
>>  
>>> Guys,
>>>
>>> What, in your opinion, is the easiest gui software. PerlTK, or what
>>> ever. I need to setup a test procedure which is script based and an easy
>>> gui where the operator clicks a button which kicks off a script would be
>>> best.
>>>     
>>
>> Check out 'zenity' from gnome.  Built for exactly this kind of thing.
>>
>> Matt
>>
>>   
> This is almost perfect. I would like to be able to display a menu, and
> when clicking on the menu button item, a shell script executes. The
> return status of the shell script could set the background color of the
> menu button. (Green success, red failure.) A quick look through zenity
> didn't show anything. I could repop up the window using a while [ 1 ];
> do; case etc; So that every time you click on a menu button zanity
> exists and you rexecute zanity at the top of the loop.
> 

For your first question, there's a 'list' type:
zenity --list --checklist --column "Buy" --column "Item" TRUE Apples TRUE \
Oranges FALSE Pears FALSE Toothpaste

Matt

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list