maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Python: Extending hildon input profiles ? (or how to enable decimal separator in numeric input?) (https://talk.maemo.org/showthread.php?t=49925)

rambo 2010-04-13 16:30

Python: Extending hildon input profiles ? (or how to enable decimal separator in numeric input?)
 
As per http://talk.maemo.org/showpost.php?p...0&postcount=70 I'm looking for a way to have Hildon Input Method in numeric mode and still allow for decimal separator (I have no idea why it's not allowed by default in the numeric mode...)

See http://vcs.maemo.org/svn/maecalories...s/weightlog.py for code I use now.

http://maemo.org/api_refs/5.0/beta/g...IMContext.html has TELE mode, but contrary to the documentation it does not allow dots either.

rambo 2010-04-14 05:16

Re: Python: Extending hildon input profiles ? (or how to enable decimal separator in numeric input?)
 
bumpity bump, anyone have any idea?

rambo 2010-04-14 12:17

Re: Python: Extending hildon input profiles ? (or how to enable decimal separator in numeric input?)
 
Jump, my precious! Jump as high as the birds fly!

rambo 2010-04-14 20:41

Re: Python: Extending hildon input profiles ? (or how to enable decimal separator in numeric input?)
 
Code:

input.set_property
(
    'hildon-input-mode',
    gtk.HILDON_GTK_INPUT_MODE_NUMERIC | gtk.HILDON_GTK_INPUT_MODE_SPECIAL
)

sorta works, though it enables the full set of special characters...

edit: and does not really answer the original question of how to extend a profile only a little.

noobmonkey 2010-04-14 20:43

Re: Python: Extending hildon input profiles ? (or how to enable decimal separator in numeric input?)
 
hehehe, good to see you are trying :D :D
Unfortunately don't have a clue about GTK :(


All times are GMT. The time now is 03:33.

vBulletin® Version 3.8.8