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.


    x button of scene object.

    Pythonista
    3
    6
    2757
    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.
    • hxdaze
      hxdaze last edited by

      I would like to delete a button of scene object.
      How do I make a source code to delete it?
      There is no information about it.

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

        Scene objects don't have buttons, per se, just drawn boxes. Modification of a scene depends on how the scene does its drawing, so there is no universal answer.... Did you mean a ui.View?

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

          It is a bit difficult to understand the context of your question without code but you can take a look at Layer.remove_layer() on http://omz-software.com/pythonista/docs/ios/scene.html to see if that helps.

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

            I am sorry for less information.
            I would like to delete a button in the following case.

            from scene import *
            class MyScene (Scene):
            def setup(self):
            pass
            def draw(self):
            background(0, 0, 0)
            run(MyScene())

            I can watch only 'x button' on the screen.
            I would like to delete this button because I want to prepare other close button by my self.
            I already check other sample and open source such as GitHub.
            But there is no same case of situation and document.

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

              http://omz-forums.appspot.com/pythonista/post/5246202996064256

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

                Thank you for your help.
                I miss find it.

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