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.


    [Issue] Keyboard shortcut and dialog module support

    Pythonista
    3
    3
    107
    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.
    • C
      circumvention last edited by

      Hi there, I’ve been working on an app recently that uses the dialogs module. When using the function “input_alert”, and or “alert” it works perfectly fine within the Pythonista program, but when I try to implement this code using the “keyboard shortcut” no dialog is displayed and the keyboard essentially crashes… is there anyway around this, I did try to create my own UI using TextFields but that wasn’t working aswell. Thank you!

      Video Demonstration (YouTube)

      ccc cvp 2 Replies Last reply Reply Quote 0
      • ccc
        ccc @circumvention last edited by

        It is easier to debug Python code than English prose.

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp @circumvention last edited by cvp

          @circumvention I don't think that keyboard shortcut supports dialog but you can use ui.TextField or ui.TextView in your customized keyboard view, like the help function in the Calculate keyboard example, included in Pythonista.
          Have a look there.

          But don't forget that your keyboard is active on a TextField/TextView of another app thus your customized TextField in the keyboard can display a text but can't be edited. Only buttons can be pressed.

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