Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
ui.keyboard_type
-
I am trying to get the keyboard for a textfield to be the purely numeric pad. I have tried setting the keyboard type to ui.KEYBOARD_NUMBER_PAD but that shifts to the full numeric. None of the othe ui.keyboard constants seem to produce the number pad either. Is there a way do this?
-
are you on ipad, or iphone? iirc, ipad does not support the numeric keypad.
-
Thanks. I was trying to do this on the iPad and you are correct, the iPad doesn't support the alternative keyboards. Perhaps this will be achievable with IOS 11 or with Pythonista support for custom keyboards.
-
The alternative keyboards are supported on iPad, but the number pad is the same as regular numeric keyboard. A phone-style number pad wouldn't work well on an iPad.
-
@ihf , i guess you have considered this but just wanted To mention it. You could build a popover view with a keypad style appearance and position it not to obscure the field or the view could have a field to collect the info and pass it back the results to your field on your main form. Could be activated using a ui.TextField delegate method 'textfield_should_begin_editing'.
edit
The calculator example that comes with Pythonista could be an easy starting point