omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. SeaUrchin
    3. Best

    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 1
    • Followers 0
    • Topics 1
    • Posts 7
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by SeaUrchin

    • Help with Ui Segment Bar

      Hi everyone! This is my first day coding ever, and I have chosen this app to start with! The question I am about to ask and the things I'm about to show you are very basic, so please bare with me.
      So I am starting out with making a simple program to be able to take a poll. After doing research I found that to give UI things to do you must give them an action. With the segment bar there is no option to add a action, so I was wondering how I would add one for it. If it helps, here is my code. Thank you all in advance!

      import ui
      import console
      def segment1(self):
         console.alert('Segment 1 Has been selected and accepted!')
      def segment2(self):
         console.alert('Segment 2 Has been selected and accepted!')
      v=ui.load_view()
      v.present()
         ```
      posted in Pythonista
      SeaUrchin
      SeaUrchin