omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. yoyo

    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 7
    • Posts 18
    • Best 0
    • Controversial 0
    • Groups 0

    yoyo

    @yoyo

    0
    Reputation
    768
    Profile views
    18
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    yoyo Unfollow Follow

    Latest posts made by yoyo

    • RE: How to show a row values in csv file with scrollview

      Thank you so much!
      I got it!

      posted in Pythonista
      yoyo
      yoyo
    • How to show a row values in csv file with scrollview

      I want to show each row in csv file on iOS application GUI.
      Is Scroll view a proper component?

      What I want do is to show a following row values without comma on GUI.
      Can you please tell me how to display Sample.csv without comma by using scroll view?

      Sample.csv:
      1,Value A
      2,Value B

      posted in Pythonista
      yoyo
      yoyo
    • RE: How to get a object value from custom view class

      @cvp Thank you so much!

      posted in Pythonista
      yoyo
      yoyo
    • How to get a object value from custom view class

      Hello, all pythonista in the world.
      I'm making a sample program which tests touch_began() and touch_end() methods by using custom view object on pyui file.
      I implemented MyView class in python file and touch methods worked well(Following program).
      If I put a label object on the pyui file, how can I get a value of label object in touch method?

      import ui
      class MyView (ui.View):
      def touch_began(self, touch):
      print('touch')

      def touch_ended(self, touch):
      	print('end')
      

      v1 =ui.load_view('touch')
      v1.present(style = 'full_screen', orientations = ['landscape'])

      As I told, touch.pyui has a cutom view object connected to MyView class and label object. I want to print label object's text value when touch_began() is called. Could you please tell me how to implement?

      posted in Pythonista
      yoyo
      yoyo
    • RE: How to stop recording when a finger is released from a button

      @JonB Thank you so much! I’m gonna try!

      posted in Pythonista
      yoyo
      yoyo
    • How to stop recording when a finger is released from a button

      My application for iOS has recording function. Based on sample code, I implemented a following code. As you understand, recorder.stop() is executed after alert dialog is closed. I want to change this specification from current one to new one which records a voice while a button on UI is kept touching, and when user releases a finger from a button, recorde.stop() is executed. How should I implement this? I don’t want to use an alert dialog.

      recorder = sound.Recorder('speech.m4a')
      recorder.record()
      # Continue recording until the 'Finish' button is tapped:
      dialogs.alert('Recording...','','Finish',hide_cancel_button=True)
      recorder.stop()
      
      posted in Pythonista
      yoyo
      yoyo
    • RE: How to show a value choosen in previous UI.

      @johnridesabike Based on your sample, I was able to implement my requirement! Thank you so much.

      posted in Pythonista
      yoyo
      yoyo
    • RE: How to show a value choosen in previous UI.

      @johnridesabike I have tried your sample code. However, load_view generate new screen, right? What I want to do is to change screen without exit button located on title bar...

      posted in Pythonista
      yoyo
      yoyo
    • RE: How to show a value choosen in previous UI.

      @johnridesabike
      @mikael

      Thanks for your reply. Is it possible to reflect setting value dynamically when we use bring_to_front()?

      posted in Pythonista
      yoyo
      yoyo
    • RE: How to show a value choosen in previous UI.
      #This is a sample code based on my app.
      import ui
      Import random
      
      #This function is connected to a button in TopPage.pyui
      def screen_front(sender):
      	key = random.randrange(0,20,1)
      	v3.bring_to_front()
      
      # I would like to show ‘key’ value in Next.pyui as default value after
      # ‘v3.bring_to_front()’ execution. It means that key value in Next.pyui
      # is always different since a value of key is set with random method. 
      
      v1 =ui.load_view('Canvas')
      v2 =ui.load_view('TopPage')
      v3 =ui.load_view('Next')
      v1.add_subview(v2)
      v1.add_subview(v3)
      
      #Bring TopPage.pyui as top page UI.
      v2.bring_to_front()
      
      v1.present('sheet')
      
      posted in Pythonista
      yoyo
      yoyo