[maemo-developers] [maemo-developers] Keeping the softkeypad from going away.

From: Tomas Junnonen tomas.junnonen at nokia.com
Date: Mon Oct 23 17:43:00 EEST 2006
ext Osvaldo Santana wrote:
> Hi Adam,
> 
> I made an investigation to discover how you can do this with C and I
> found a reference to GtkIMContext object associated with a GtkWidget
> object.
> 
> When a GtkEntry (that derives from GtkWidget) get focus it sends a
> gtk_im_focus_in() message to GtkIMContext object and this method make
> the softkeypad popup on the screen.
> 
> There are bindings to GtkEntry and GtkIMContext in PyGTK+[1][2] but I
> didn't have time to discover how you can use these objects to keep the
> softkeypad from going away.
> 
> [1] http://www.pygtk.org/docs/pygtk/class-gtkimcontext.html
> [2] http://www.pygtk.org/docs/pygtk/class-gtkwidget.html

I'm not that familiar with PyGTK, but from what I see there's two problems:

- The IM context of an entry is private. Now that doesn't stop you from
accessing it in C, but unfortunately it means it's not currently
available through the PyGTK API.

- The PyGTK bindings available don't seem to include any of the Maemo
specific bits added to GTK, particularly all the functions that start
with hildon_. You would need to have PyGTK bindings of at least the
hildon_gtk_im_context_* functions to do what you want.

Regards,
Tomas

> On 10/9/06, adam singer <adamssai at gmail.com> wrote:
>> How can  you keep the softkeypad from going away in a hildon application
>> written in python?
> [cut]
> 

More information about the maemo-developers mailing list