omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    console.input_alert -- show only number pad instead of full keyboard?

    Pythonista
    3
    4
    2582
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • claggs
      claggs last edited by

      I am wanting to use console.input_alert to take user input, but would like it to show the numpad instead of a full keyboard. Is this possible?

      1 Reply Last reply Reply Quote 0
      • briarfox
        briarfox last edited by

        @claggs I do not believe so. Your best bet is to create a ui number pad and your own ui input alert.

        1 Reply Last reply Reply Quote 0
        • dgelessus
          dgelessus last edited by

          The ui module has the option to use various keyboards for text fields, the ones you are probably looking for are KEYBOARD_DECIMAL_PAD, KEYBOARD_NUMBERS, KEYBOARD_NUMBER_PAD and KEYBOARD_PHONE_PAD. On an iPad they all just display the regular number keyboard section (.?123), but on an iPhone they will most likely display different number pads. As I don't own an iPhone and the documentation doesn't go into much detail, I can't say what exactly the differences between the four keyboard types are.

          1 Reply Last reply Reply Quote 0
          • briarfox
            briarfox last edited by

            @dgelessus Thank you, I was unaware of this feature.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors