omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. image-tech-nick
    3. Posts

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by image-tech-nick

    • RE: Switch to next text field and update text with the same buttons

      @cvp Thank you so much, that worked perfectly.

      posted in Pythonista
      image-tech-nick
      image-tech-nick
    • RE: Switch to next text field and update text with the same buttons

      Or maybe I could have a while loop based on TextField.delegate conditions. It could break out of the loop with the "Next Field" button, hmmm!

      posted in Pythonista
      image-tech-nick
      image-tech-nick
    • RE: Switch to next text field and update text with the same buttons

      Is there a way to write a function that checks what text field has the curser?

      posted in Pythonista
      image-tech-nick
      image-tech-nick
    • RE: Switch to next text field and update text with the same buttons

      With buttons I made a ui number pad 0-9. with the block of code above when you press the buttons it adds numbers to text field object spd_tf. I want to change to the second text field object sze_tf. Then the user can add numbers to sze_tf.

      posted in Pythonista
      image-tech-nick
      image-tech-nick
    • Switch to next text field and update text with the same buttons

      I made a number keypad that works like a Pythonista calculator. Only difference is the I have two text fields. I added a "Next Field" button so you can switch to the next text field. How can when I switch text fields use the same number pad? I looked all through the wiki and don't see anything. There a way you check what text field is active for text input?

      def num_input(sender):
          '@type sender: ui.Button'
          t = sender.title
          sze_tf = sender.superview['size_tf'] # 1st text field
          spd_tf = sender.superview['speed_tf'] # second text field
          if t in '0123456789':
              if spd_tf.text == 'avg. speed':
                  spd_tf.text = t
              else:
                  spd_tf.text += t
          elif t == '.' and spd_tf.text[-1] != '.':
              spd_tf.text += t
          elif t == 'DEL':
              spd_tf.text = spd_tf.text[:-1]
          else:
              spd_tf.text += t
          ```
      posted in Pythonista
      image-tech-nick
      image-tech-nick
    • RE: Is it possible to copy a button or other UI widgets in the Designer?

      If you wanna clone widget click hold the widget> copy. Go off the frame and click hold > paste. If you want to change an existing widget click on the widget and paste.

      posted in Pythonista
      image-tech-nick
      image-tech-nick