• image-tech-nick

    @cvp Thank you so much, that worked perfectly.

    posted in Pythonista read more
  • image-tech-nick

    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 read more
  • image-tech-nick

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

    posted in Pythonista read more
  • image-tech-nick

    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 read more
  • image-tech-nick

    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 read more
  • image-tech-nick

    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 read more

Internal error.

Oops! Looks like something went wrong!