omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Access the Console while script is running

    Pythonista
    3
    6
    3387
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ruimac
      ruimac last edited by

      Is there any way to access the Console while the script is running?
      I usually print stuff to the console while debugging or checking for logical errors.
      But it is a pain having to stop the script to check out the console output.

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        Not for scene modules, but for everything else, yes.
        You can drag near the top to switch between editor and console. For ui modules, presenting in a panel on ipad allows you to swap back and forth easily.

        1 Reply Last reply Reply Quote 0
        • Sebastian
          Sebastian last edited by

          @JonB Building on that, it is possible to do the same with the scene module by presenting it with a scene.SceneView instead of using the scene.run function.

          1 Reply Last reply Reply Quote 0
          • ruimac
            ruimac last edited by

            I have a script that creates a View that I populate with ui items.
            I'm presenting that View with my_view.present('full_screen')
            So, I'm getting a full screen with a top bar that has a close button (an X) at the top left.
            Is there any way to get to the console in this scenario?

            1 Reply Last reply Reply Quote 0
            • Sebastian
              Sebastian last edited by

              @ruimac Can't you use myview.present('panel') instead?

              1 Reply Last reply Reply Quote 0
              • ruimac
                ruimac last edited by

                Oh, great!!! I didn't knew that one.
                Well, I only have Pythonista for three days now (and I already coded a large script).
                I just have to learn some more.
                Thank you :-)

                Mental note: Use 'panel' while developing and then replace with 'full_screen'. Better yet, make it a global variable and just change it as it is needed :-)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors