[maemo-developers] Gtk/hildon development questions

From: Dmitry S. Makovey dimon at makovey.net
Date: Sat Nov 29 07:14:02 EET 2008
Kamen Bundev wrote:
>> 1. how can I restrict input in certain input fields to subset of
>> characters. I know it can be done - I remember seeing some application
>> having half-of-hildon keyboard grayed out so that there is no way to
>> type something that is no allowed. As a quick example: numeric-only
>> fields; fact that I have to hit "shift" button first to get normal
>> keypad appear in numeric fields makes it really awkward and unfriendly.
> http://maemo.org/api_refs/4.1/gtk+2.0-2.10.12/libgtk2.0/GtkIMContext.html#HildonGtkInputMode
awesome. Thanks! My apps are PyGtk apps, but that gave me something to 
look for. My current plan is to use something like:

entry=gtk.Entry()
im=entry.set_property('hildon-input-mode',2)

not sure if I can actually get to some constants definitions. but this 
is already looking so much better :)

More information about the maemo-developers mailing list