konttori
|
2010-02-20
, 18:18
|
Posts: 1,038 |
Thanked: 737 times |
Joined on Nov 2005
@ Helsinki
|
#21
|
|
2010-02-20
, 18:30
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#22
|
PR1.2 comes with autorotate window mode. SHould help in here a lot. Compositor will then handle the rotation in the manner user wants (default in pr1.2: kb open -> landscape always, otherwise, follow accelerometer like in the examples above) Beauty is that app doesn't need to care, it can just set the autorotate on and that's it.
|
2010-02-21
, 09:56
|
Posts: 1,038 |
Thanked: 737 times |
Joined on Nov 2005
@ Helsinki
|
#23
|
|
2010-02-21
, 10:28
|
Posts: 376 |
Thanked: 511 times |
Joined on Aug 2009
@ Greece
|
#24
|
|
2010-02-25
, 00:17
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#25
|
The Following 3 Users Say Thank You to thp For This Useful Post: | ||
|
2010-02-25
, 00:25
|
Posts: 89 |
Thanked: 6 times |
Joined on Feb 2010
|
#26
|
|
2010-02-25
, 21:54
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#27
|
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.
|
2010-06-03
, 14:38
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#29
|
|
2010-06-03
, 15:00
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#30
|
Tags |
code, fremantle, howto, portrait mode, python |
|