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.


    Scene and ui

    Pythonista
    5
    8
    5237
    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.
    • polymerchm
      polymerchm last edited by

      What is value in using both? Are their "run" loops the on the same or independent threads?

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

        They have different use cases. scene is mostly for games, ui mostly for app-like GUIs. In some cases, you might need functionality from both – for example, you might use a ui.TextField in a game that allows you to enter your name etc.

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

          Are their interoperability issues?

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

            Interoperability? What's that? ;)

            There is the ui.SceneView, which can show a scene inside a UI, with a few minor limitations, but that's basically all you can do. The other way around is practically impossible, except perhaps for popover views on top of a scene.

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

              no idea lol

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

                @hbgmysite very subtle spam there.

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

                  scene.SceneView actually.

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

                    Could someone point to an example of using scene.SceneView? I'd love to be able to add a scene-powered element in an existing ui-based application to be able to display content based on input from ui widgets, but I'm not completely understanding the use of SceneView, especially when trying to add a "custom view" widget in the UI editor. Thanks!

                    Edit: figured it out, after finding https://omz-forums.appspot.com/pythonista/post/5817214200446976

                    I'll clean up my code and post the example script and .pyui file soon, in the hopes it will help others.

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