Example for passing additional parameters to zenity?

100 views
Skip to first unread message

Quintin Riis

unread,
Jul 16, 2012, 10:23:47 PM7/16/12
to autoke...@googlegroups.com
I am investigating using AutoKey to save time.  The default options mean I have to scroll in the following example.  Scrolling wastes time!!

I need to pass --height=i through to zenity, how do I do this?  I have found references to passing additional parameters in the source code, but nothing I try works as desired.  

I am working with the following example script:
=
choices = ["1", "2", "3", "4", "5", "6"]

retCode, choice = dialog.list_menu(choices)
if retCode == 0:
    keyboard.send_keys("You chose " + choice)


What do I need to do so that the dialog box is larger?  

Additionally, it might be a good idea to make the box sizeof(choices) * 10 if choices < 10 or some such by default.

jos...@main.nc.us

unread,
Jul 17, 2012, 4:54:03 PM7/17/12
to autoke...@googlegroups.com
Don't know the answer, but I do use zenity a bunch.

Would it be possible to bypass the whole issue by using python to call
zenity directly with whatever parameters you desire? I'm a python
beginner, so I couldn't show you how.

If you do go that route, take a look at yad. It's a replacement for
zenity that has more options.

Joe
Reply all
Reply to author
Forward
0 new messages