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.


    Is it possible to hide the 'Stop' cross in the upper lefthand corner?

    Pythonista
    5
    5
    4136
    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.
    • upwart
      upwart last edited by

      I am making an animation movie in Pythonista, which is to be recorded and distributed.
      Of course, I use Scene for this purpose. But, there is always the stop-cross in the upper left hand corner visible.
      Is there a way to hide this unwanted cross?

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

        You could run the scene with a SceneView, and present it using the hide_title_bar option.

        Here's a short example with a scene that just draws a green background:

        from scene import *
        
        class MyScene (Scene):
        	def draw(self):
        		background(0, 0, 1)
        
        view = SceneView()
        view.scene = MyScene()
        view.present('fullscreen', hide_title_bar=True)
        

        (swipe down with two fingers to close the view)

        There's currently no way to hide the status bar (time, battery...) though.

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

          This is definitely not working in the recent implementation of Pythonista. Any new ideas for how to solve this? I want to remove the X for the full screen app I'm building.

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

            Discussed here
            https://forum.omz-software.com/topic/3306/disable-on-screen-printing-in-scene-

            Now with objc_util it is possible to hide status bar(battery, time etc)

            import scene, ui
            from objc_util import UIApplication
            
            def close_view():
                v.close() 
            
            class MyScene(scene.Scene):
                def setup(self):
                    self.test_label = scene.LabelNode('Test hide title bar', 
                        position=self.size/2.0, parent=self)
                    self.close_label = scene.LabelNode('Close view',
                        position=(self.size[0]/2, self.size[1]/2-100),
                        parent=self)
                        
                def touch_began(self, touch):
                    if touch.location in self.close_label.frame:
                        close_view()
            
            w, h = ui.get_window_size()
            frame = (0, 0, w, h)
            v = ui.View(frame=frame)
            scene_view = scene.SceneView(frame=frame)
            scene_view.flex= 'WH'
            scene_view.scene = MyScene()
            v.add_subview(scene_view)                
            v.present('fullscreen', hide_title_bar=True)
            UIApplication.sharedApplication().statusBar().hidden = True
            
            
            1 Reply Last reply Reply Quote 0
            • robnee
              robnee last edited by

                  def hide_close(self, state=True):
                      from objc_util import ObjCInstance
                      v = ObjCInstance(self.view)
                      for x in v.subviews():
                          #if 'UIButton' in x.description():
                          if str(x.description()).find('UIButton') >= 0:
                              x.setHidden(state)
              

              This works better for me.

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