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.
Help with Ui Segment Bar
-
Oh ok, I see, so you just made it yourself instead of the ui feature. Thanks!
-
This does not seem to run in the output. I'm sorry if I needed to do something, after all this is my first day programming. What do I do to make it run?
-
Add this line at the end of the script:
view.present()
-
Thank you very much!
-
def segment_action(sender): seg_name = sender.segments[sender.selected_index] console.alert(seg_name + ' has been selected')
-
I have also changed the console alerts to speech, so that it can be said while the Ui is running. Very cool speech module!
-
Whoops, didn't see your post before mine. I will try that as well!
-
console.hud_alert is also a good alternative to console.alert, as it does not interfere with the ui.
-
If you want to make a console.alert pop up over a UI, then just do this:
@ui.in_background def popup(): console.alert("hello") popup()
This makes the program run in the background that way you can have it pop up.
-
@AtomBombed thanks!