[maemo-developers] python app at portrait mode all the time
From: Kimmo Hämäläinen kimmo.hamalainen at nokia.comDate: Mon Apr 26 16:29:33 EEST 2010
- Previous message: python app at portrait mode all the time
- Next message: Splitting windows vertically
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 2010-04-24 at 21:03 +0200, ext Faheem Pervez wrote: > The part you want is in the orientation_changed function. > > Try: > > hildon.hildon_gtk_window_set_portrait_flags(window, > hildon.PORTRAIT_MODE_SUPPORT | hildon.PORTRAIT_MODE_REQUEST) This does not work if you have e.g. dialog that requires landscape mode (because of text input, for example) on top of you. Unfortunately, there is no way to force yourself portrait in the case your window is not the topmost window. -Kimmo > On 4/24/10, peltsip at gmail.com <peltsip at gmail.com> wrote: > > Hi, is there a single or two rows way to define a python app to stay at > > portrait mode all the time? > > > > Tried to look through autorotation stuff from portrait.py[1] but didn't > > manage to find anything that I could use straight on. > > http://talk.maemo.org/showthread.php?t=31940 > > [1]http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/frmntl/portrait.py > > > > I am trying to make a simple portrait sms python app as requested at tmo. > > > > So if someone knows how to do that as simple as possible, I'd appreciate > > some tips. > > > > Ossipena / TimoP > > _______________________________________________ > > maemo-developers mailing list > > maemo-developers at maemo.org > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers
- Previous message: python app at portrait mode all the time
- Next message: Splitting windows vertically
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]