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.


    Start scenes within UI?

    Pythonista
    2
    3
    2844
    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.
    • bennr01
      bennr01 last edited by

      Hello,
      Does anyone know if there is a way to start scenes with the UI-modul? I tryed ui.in_background with the scene.run function, but the draw-method never get called(tried it with an print command). Seems to be corectly written, i also copy-and-pasted the demo for the console.alert in the documentation and edited it. Thanks for every help!

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

        The recommended way to run scenes within a ui is to use the scene.SceneView class, which is a subclass of ui.View.

        There's a section about this in the documentation:

        → scene – Integration with the ui module

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

          Thanks! I havent read the documentation of the scene-modul since the new update came out, so i havent found the new section.

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