maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Disable pretext in python widget (https://talk.maemo.org/showthread.php?t=52338)

jaguilar 2010-05-10 18:24

Disable pretext in python widget
 
I made a program in Python, and must avoid that all the text entered in it goes to the internal dictionary.

How can I disable the pretext in a Python widget using GTK?

TIA

qwerty12 2010-05-10 19:06

Re: Disable pretext in python widget
 
Try something like
Code:

input_mode = entry.get_property("hildon-input-mode")
input_mode |= gtk.HILDON_GTK_INPUT_MODE_INVISIBLE
input_mode &= ~gtk.HILDON_GTK_INPUT_MODE_DICTIONARY
entry.set_property("hildon-input-mode", input_mode)


jaguilar 2010-05-10 20:29

Re: Disable pretext in python widget
 
Worked like a charm!

Indeed, only needed to disable the attribute "gtk.HILDON_GTK_INPUT_MODE_DICTIONARY".

Thanks!!!!


All times are GMT. The time now is 07:36.

vBulletin® Version 3.8.8