@cvp Thank you so much, that worked perfectly.
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.

Posts made by image-tech-nick
-
RE: Switch to next text field and update text with the same buttons
-
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! -
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?
-
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 objectsze_tf
. Then the user can add numbers tosze_tf
. -
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 ```
-
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.