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) On 4/24/10, pelt...@gmail.com <pelt...@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@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers