Forum Archive

Scene.should_rotate

guyhillyer163

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?

omz

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

guyhillyer163

Good to know, thanks.