Thread: Tip Calculator
View Single Post
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#13
Unfortunate you can't win.

you can use

spincontrol.set_property('hildon-input-mode', 2)

to set numeric only which will activate the built-in numberpad exclusively. The problem is you don't get "." You could try "TELE" mode, but because some of the letters allowed are shared with numbers it does not enable the numbers 'Fn' mode by default.

Turning off auto-caps is easy, you just use the same function, but make sure that bit 30 is off. http://maemo.org/api_refs/4.1/gtk+2....onGtkInputMode

Short of one or two of your fields though there is no good way to have money entry [0-9\.] only. It sucks.
 

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