It should be available as another layout like AZERTY / QUERTY / US
NUMERIC / FR NUMERIC...
And if you want to remove all other characters, you could do:
re.sub('[^0-9\.\-]*', '', your_text_var).
It's not enough to be really usable and cover all cases, but it's a start :)
Mathieu
2010/8/17 Rich E <reaki...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "pymt-dev" group.
> To post to this group, send email to pymt...@googlegroups.com.
> To unsubscribe from this group, send email to
> pymt-dev+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pymt-dev?hl=en.
>
It's just not yet included, an issue is already open for that :
http://code.google.com/p/pymt/issues/detail?id=256
It should be available as another layout like AZERTY / QUERTY / US
NUMERIC / FR NUMERIC...
And if you want to remove all other characters, you could do:
re.sub('[^0-9\.\-]*', '', your_text_var).
---
from pymt import *
import re
m = MTTextInput()
m.old_value = ''
@m.event
def on_text_change(value):
try:
if value != '':
float(value)
m.old_value = value
except ValueError:
m.keyboard.text = m.value = m.old_value
runTouchApp(m)
---
2010/8/18 Rich E <rich....@gmail.com>: