omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Tey

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    Tey

    @Tey

    0
    Reputation
    492
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Tey Unfollow Follow

    Latest posts made by Tey

    • RE: How to hide status bar in scene?

      @mikael
      Thank you so much! It looks like it will do the trick. I won’t have time to apply it to my project for the next week or so but will get back to you.

      posted in Pythonista
      Tey
      Tey
    • RE: How to hide status bar in scene?

      @mikael
      I am new to all this, so I’m not sure what you mean by “developing with”. I am using both scene and ui. I create menus by calls to ui, not with the UI builder.The program begins with menu buttons appearing to float on top of the initially black scene (because the menu itself has alpha 0.) Pressing a button causes the buttons to disappear and an animation to begin. Pressing a navicon icon in the upper left of the scene causes the animation to stop and the buttons to return. Menus of buttons and controls will be dynamically created allowing the user to adjust animation parameters.

      posted in Pythonista
      Tey
      Tey
    • RE: How to hide status bar in scene?

      Still get the NameError. Just to be clear, below is what ran. I’ve also run it with @JonB lines after v.present but of course still get the name error.

      I’ll give up on this for now because in actual practice my screen is black not white and the status info only shows up when something light colored passes behind the status bar.

      Thanks everyone for trying.

      import scene
      import ui
      from objc_util import *
      
      class Loop(scene.Scene):
      
      	def setup(self):
      		self.background_color = 'white'
      
      	def update(self):
      		time = self.t 
      
      v = ui.View(frame=(0, 0, 1366, 1024))
      
      @on_main_thread # comes from objc_util
      def x():
      	objc_util.UIApplication.sharedApplication().statusBar().hidden = True
      x() 
      
      v.present('full_screen', hide_title_bar = True)
      
      posted in Pythonista
      Tey
      Tey
    • RE: How to hide status bar in scene?

      My ... we do wander off topic don’t we?

      I’m running 13.3.1 on an iPad Pro (12.9 inch) (2nd generation)

      My problem is with the status bar, not the title bar. The title bar is the one with the X used to terminate the program. It can be made to completely disappear using hide_title_bar = True, as in my original post.

      The status bar is an Apple thing. It contains time and date at the left and battery indicator among other things at the left. You see it at the top of your main screen.

      So, to summarize:

      @JonB your suggestion of
      import objc_util
      objc_util.UIApplication.sharedApplication().statusBar().hidden = True

      for reasons unknown to me no longer causes the screen to appear for a split second before Pythonista terminates. The program no longer terminates but the status bar is still present.

      @cvp your suggestion of
      “@on_main_thread
      def x():
      objc_util.UIApplication.sharedApplication().statusBar().hidden = True
      x() “

      causes a NameError, name on_main_thread is not defined. And the status bar is still there.

      @cvp I have you beat by a decade. My first computer was an IBM 1620, used paper tape, took 180 microseconds to execute a NOOP and had a 40K digital memory. None of this newfangled octal or hexadecimal. Seventy may be the new fifty but eighty is still the same old eighty!

      posted in Pythonista
      Tey
      Tey
    • RE: How to hide status bar in scene?

      That causes my screen to appear briefly, then the program terminates.

      posted in Pythonista
      Tey
      Tey
    • How to hide status bar in scene?

      How can I keep the status bar (giving time, date, .... battery level) from appearing at the top of my scene?

      import scene
      import ui
      
      class Loop(scene.Scene):
      
      	def setup(self):
      		self.background_color = 'white'
      
      	def update(self):
      		time = self.t 
      
      v = ui.View(frame=(0, 0, 1366, 1024))
      v.present('full_screen', hide_title_bar = True) 
      
      • list item
      posted in Pythonista
      Tey
      Tey
    • RE: Combine Scene and Ui module

      @wnMark
      So simple. Thanks!

      posted in Pythonista
      Tey
      Tey
    • RE: Combine Scene and Ui module

      @rownn I’d like to run your example posted two months ago but I don’t know how to convert the text for the .pyui file into an actual .pyui file. I’m brand new to Pythonista.

      posted in Pythonista
      Tey
      Tey
    • RE: Combine Scene and Ui module

      @rownn

      Hi, I’d like to try your example

      posted in Pythonista
      Tey
      Tey