toyg
01-21-2010, 05:16 AM
Hi,
I'm writing a small app for the N900 using Python / PyGTK.
Do you know what is the best / recommended way to have the user input numbers in an Entry without having to keep the Fn key pressed?
It is possible, I've seen it done by the calendar application, the contact application etc, however it seems like non-core apps never use this functionality.
I cannot use a Selector, because the range of possible values is simply too big and it would be quite annoying to have to scroll through it.
I thought about simply "intercepting" the pressed key and replacing it with the number, but it seems that doing this in GTK might be a bit convoluted. I hoped there was some sort of simple switch, like hildon_set_fn_key_lock :D
Thanks in advance,
Giacomo
I'm writing a small app for the N900 using Python / PyGTK.
Do you know what is the best / recommended way to have the user input numbers in an Entry without having to keep the Fn key pressed?
It is possible, I've seen it done by the calendar application, the contact application etc, however it seems like non-core apps never use this functionality.
I cannot use a Selector, because the range of possible values is simply too big and it would be quite annoying to have to scroll through it.
I thought about simply "intercepting" the pressed key and replacing it with the number, but it seems that doing this in GTK might be a bit convoluted. I hoped there was some sort of simple switch, like hildon_set_fn_key_lock :D
Thanks in advance,
Giacomo