maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Problems with hildon.Entry (python) (https://talk.maemo.org/showthread.php?t=63533)

laasonen 2010-10-08 13:22

Problems with hildon.Entry (python)
 
I'm having some trouble using hildon.Entry with python. I can't find any information about password mode and disabling automatic capitalization. Could someone please give me example or link to more comprehensive documentation?

Hildon::Entry Class Reference

Thanks.

mbo 2010-10-08 13:28

Re: Problems with hildon.Entry (python)
 
More python specific at least:

http://pymaemo.garage.maemo.org/pyth...cts.html#entry

Look here for more docs: http://pymaemo.garage.maemo.org/docs.html

mbo 2010-10-08 13:30

Re: Problems with hildon.Entry (python)
 
also usefull: http://library.gnome.org/devel/pygtk/stable/

laasonen 2010-10-08 16:29

Re: Problems with hildon.Entry (python)
 
Thanks, I got the password-field working like this:
Code:

self.fields["password"].set_visibility(False)
But I cant find any information concerning automatic capitalization.

nicolai 2010-10-08 23:53

Re: Problems with hildon.Entry (python)
 
Quote:

Originally Posted by laasonen (Post 836553)
Thanks, I got the password-field working like this:
Code:

self.fields["password"].set_visibility(False)
But I cant find any information concerning automatic capitalization.

to disable automatic capitalization, set the input mode to
alphanumeric only:
Code:

entry = hildon.Entry(gtk.HILDON_SIZE_AUTO)
entry.set_input_mode(gtk.HILDON_GTK_INPUT_MODE_ALPHA | gtk.HILDON_GTK_INPUT_MODE_NUMERIC)

regards
Nicolai


All times are GMT. The time now is 22:19.

vBulletin® Version 3.8.8