Archived:How to change screen orientation using PySymbian
This snippet shows how to change the screen's orientation in PySymbian.
This method is only available for some S60 3rd Edition devices.
The orientation attribute of the application can be read and written and can be one of the following values: 'automatic' (this is the default value), 'portrait' or 'landscape'.
Note: This method only changes the orientation of the application in which it is used. Other applications are not affected. In other words, once the application has been closed the screen's orientation is set back to the previous orientation.
appuifw.app.orientation = 'landscape'
The application's orientation is set to landscape mode.