maemo.org Bugzilla – Bug 5026
Add support for hildon_gtk_window_set_portrait_flags and HildonPortraitFlags
Last modified: 2009-09-21 23:11:31 UTC
You need to
before you can comment on or make changes to this bug.
Fremantle beta 2 with python-hildon version 0.9.0-1maemo1
STEPS TO REPRODUCE THE PROBLEM:
Try to implement rotation support in PyMaemo apps, as described in
The "hildon" module provides bindings for
No bindings available
I'd imagine the API would best be mapped like this:
w = hildon.Window() # or hildon.StackableWindow...
*** Bug 5096 has been marked as a duplicate of this bug. ***
I have seen that this landed in the PyMaemo SVN in revision 1320. When can we
expect a new release in Extras-Devel to try this out? Thanks :)
Fixed on python-hildon 0.9.0-1maemo12. Usage example:
>>> import hildon
>>> import gtk
>>> w = gtk.Window()
>>> hildon.hildon_gtk_window_set_portrait_flags(w, hildon.PORTRAIT_MODE_SUPPORT)
please note that you can't use:
To support this syntax, we would need to modify pygtk and link it against
hildon, which is not a good idea IMHO.
This might change in the future, towards a more "consistent" API, but for now
let's keep things simple.