[Sugar-devel] prevent screen rotation in a sugar activity?
nicestep at gmail.com
Thu Dec 9 19:45:30 EST 2010
If you use PyGTK to develop your Activity there are Layouts which will
arrange your controls on the screen to make the best use of the
available space. In this way the app is still usable with the screen
rotated. In View Slides I detect when the screen dimensions change
and resize the image I'm displaying. You might look at the code for
View Slides to see how I do that (or look at Read SD Comics which does
the same thing but is simpler).
Screen rotation is a useful feature of the XO. Your Activity should
be able to deal with it gracefully.
On Thu, Dec 9, 2010 at 8:51 AM, Erik Blankinship <erikb at mediamods.com> wrote:
> Is there a way to prevent a sugar activity from being rotated when there is
> a screen rotation event on an olpc-xo or other hardware which support screen
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
More information about the Sugar-devel