![]() |
2010-02-21
, 00:47
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#2
|
I'm porting to the N8x0 a pygtk application which uses keypress events. It works fine with the hardware keyboard, but the virtual keyboard doesn't seem to emit keypress events, except for the enter and backspace keys.
Is there any way to get keypress events when using the virtual keyboard?
The Following User Says Thank You to noobmonkey For This Useful Post: | ||
![]() |
2010-02-21
, 02:12
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#3
|
I'm porting to the N8x0 a pygtk application which uses keypress events. It works fine with the hardware keyboard, but the virtual keyboard doesn't seem to emit keypress events, except for the enter and backspace keys.
Is there any way to get keypress events when using the virtual keyboard?
"changed" def callback(editable, user_param1, ...) "delete-text" def callback(editable, start, end, user_param1, ...) "insert-text" def callback(editable, new_text, new_text_length, position, user_param1, ...)
The Following User Says Thank You to daperl For This Useful Post: | ||
![]() |
2010-02-21
, 22:29
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#4
|
![]() |
2010-02-21
, 22:40
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
Now, another question: How can I set the taskbar icon?
No matter how much I try, it seems I can't do it. I have copied the icon to /usr/share/pixmaps and /usr/share/icons/hicolor/26x26/hildon, updated the icon cache, and created a .desktop file. The icon shows in the menu, but not in the taskbar. gtk.window_set_default_icon() doesn't seem to work.
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-02-21
, 22:55
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#6
|
The Following User Says Thank You to maacruz For This Useful Post: | ||
![]() |
2010-02-21
, 22:58
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#7
|
Thanks, after much renaming and linking I finally got it (the png file has to have the same name as the executable), but your hints will allow me to do it right once and for all
Is there any way to get keypress events when using the virtual keyboard?