Active Topics

 


Reply
Thread Tools
Posts: 125 | Thanked: 77 times | Joined on Oct 2009 @ Sao Paulo, Brazil
#1
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's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
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)
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 125 | Thanked: 77 times | Joined on Oct 2009 @ Sao Paulo, Brazil
#3
Worked like a charm!

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

Thanks!!!!
 

The Following User Says Thank You to jaguilar For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 00:10.