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.should_rotate

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

      Hi, I have a class derived from Scene that implements should_rotate:

      def should_rotate(self, orientation):
      	print 'should_rotate called with', orientation
      	return False
      

      I expect this to be called when the screen changes from portrait to landscape, but I never see the message printed. Also I expect the return value to inhibit the rotation.

      I am not passing an orientation argument to the run method.

      Perhaps I misunderstand how this is supposed to work?

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

        I'm sorry, that's broken in the current version, should be fixed with the next update.

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

          Good to know, thanks.

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