Closed GoogleCodeExporter closed 9 years ago
Original comment by cdekter
on 31 Mar 2011 at 10:34
I'm adding a generic way to pass extra argument to Zenity or KDialog, which are
the underlying programs that generate the dialog. That way any argument that is
not specifically handled by Autokey can still be passed.
Original comment by cdekter
on 31 Mar 2011 at 10:56
Will be in v0.71.3
Original comment by cdekter
on 1 Apr 2011 at 1:20
Thanks a lot!
Original comment by joonp...@gmail.com
on 1 Apr 2011 at 2:24
I just updated to 0.71.3, and may I ask you where is the documentation about
this?
-Joon
Original comment by joonp...@gmail.com
on 5 Apr 2011 at 1:49
I found it in tho doc folder. Sorry. :)
-Joon
Original comment by joonp...@gmail.com
on 5 Apr 2011 at 1:52
I've been trying to figure out how to do this for way to long. Here's the
example I'm working from:
choices = ["Tokyo", "London", "Newark", "Atlanta", "Dallas", "Fremont"]
retCode, choice = dialog.list_menu(choices)
if retCode == 0:
keyboard.send_keys("You chose " + choice)
How do I specify height?
Original comment by qmr...@gmail.com
on 17 Jul 2012 at 2:33
I am working on script that searches your autokeys for matching terms in the
contents, I need to be able to set the height of the list_menu but I cannot see
it in the documentation. I really tried. May I please see an example if you
wouldn't mind?
Original comment by insanely...@gmail.com
on 22 Jan 2014 at 5:39
[deleted comment]
Hope I'm not too late to reply. Please take a look at the code of at:
https://code.google.com/p/autokey/source/browse/trunk/src/lib/scripting.py.
Search for "def list_menu". There are two, one each for GTK and QT. You will
see that autokey is calling zenity for GTK (search for "def __runZenity"),
Kdialog for QT (search for "def __runKdialog") externally. Also, you will see
that whatever kwargs you pass to the list_menu(), it will pass it along to the
external programs. So you check for the man page of zenity and Kdialog and
check how to specify the window size.
I do not have linux machine now so I cannot test it, but for zenity case, you
can call list_menu it with
list_menu(options, title="Choose a value", message="Choose a value",
default=None, {'height': 400, 'width'=500})
and {'height': 400, 'width'=500} will be passed to zenity in a form of --height
400 --width 500.
Hope this helps.
Original comment by joonhyou...@gmail.com
on 22 Jan 2014 at 7:16
You rock joon thanks, I will share my code in the contributed scripts here soon.
Original comment by insanely...@gmail.com
on 22 Jan 2014 at 11:09
Original issue reported on code.google.com by
joonp...@gmail.com
on 25 Mar 2011 at 5:47