omz:forum

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

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

    pyfonista

    @pyfonista

    0
    Reputation
    721
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    pyfonista Unfollow Follow

    Latest posts made by pyfonista

    • RE: Accessing iCloud folder = File not Found
      uiopen pythonista://top_stories.py?action=run&root=icloud
      
      
      'Not Found
      The file 'top_stories.py' could not be found'
      

      iCloud folder structure:
      https://i.imgur.com/ggJQsCwm.jpg

      I'm still lost!

      edit:

      If I run the command this way around:

      uiopen pythonista://top_stories.py?root=icloud&action=run
      

      It opens the top_stories.py for editing but does not run it.

      Maybe Actviator.app is not parsing the '&' character correctly (I'm trying to launch Pythonista from Activator.app -> run command)

      posted in Pythonista
      pyfonista
      pyfonista
    • Accessing iCloud folder = File not Found

      Hi,
      I'm running a script in iOS terminal using the following command:

      uiopen pythonista://top_stories/top_stories?action=run&root=icloud
      

      Pythonista opens and says this error message:

      Not Found
      The file 'top_stories/top_stories' could not be found'
      

      The script I want to run is located here within Pythonista:

       iCloud/top_stories/top_stories.py
      

      It also doesn't work if I move top_stories.py to iCloud root folder:

      uiopen pythonista://top_stories?action=run&root=icloud
      
      

      My iCloud folder on my phone:
      https://i.imgur.com/ggJQsCwm.jpg

      I'm not sure why my script is not being found. I'm launching Pythonista from a terminal application (jailbroken).
      Any ideas?

      (local storage works, just not iCloud, how come?)

      posted in Pythonista
      pyfonista
      pyfonista
    • How do I access a gui element?

      I've read the ui guide but I haven't found a solution to my problem.

      Given my pyui in my_gui.pyui:
      http://i.imgur.com/cPlQddh.png

      How can I access the ui elements in my separate my_ui.py file?

      For example, I want pressing the 'Small' button to set the text of the text field to 'this is small'.
      Right now I cannot make the button make changes to the text field element.

      
      import ui
      import imgtagr
      import clipboard
      
      def small_tapped(sender):
          sender.title = 'cool'
          
      def medium_tapped(sender):
          pass
          
      def large_tapped(sender):
          pass
          
      def none_tapped(sender):
          pass
          
          
      def main():
          ui.load_view('my_gui').present('sheet')
          
          
          
      main()
      
      posted in Pythonista
      pyfonista
      pyfonista