Thread
:
HOWTO: Python auto-rotation (Portrait mode) on Maemo 5
View Single Post
konttori
2010-02-21 , 09:56
Posts: 1,038 | Thanked: 737 times | Joined on Nov 2005 @ Helsinki
#
23
Sure, it's an XAtom, so it's easy to make the call from pyqt to it. Well, from any python app, it should be about the same call.
It's basically to call the counterpart of this:
hildon.hildon_gtk_window_set_portrait_flags(window , flags)
Anyway, the auto rotate is really convenient, because if you set that as the flag, the above line is the only thing you need from all that code from xorbit. Anyway, it's as easy with pyqt, I just don't have a snipplet at hand. Perhaps someone else has.
Quote & Reply
|
konttori
View Public Profile
Send a private message to konttori
Find all posts by konttori