Portrait mode.
authorv13 <v13>
Wed, 2 Jun 2010 18:53:58 +0000 (18:53 +0000)
committerv13 <v13>
Wed, 2 Jun 2010 18:53:58 +0000 (18:53 +0000)
trunk/src/win.py

index e20f2bd..dd1521c 100755 (executable)
@@ -319,6 +319,11 @@ class MaeGirls(QMainWindow):
     def __init__(self, algo):
        QMainWindow.__init__(self)
 
+       try:
+           self.setAttribute(Qt.WA_Maemo5AutoOrientation, True)
+       except:
+           pass
+
        self.setupUi(algo)
 
 #      self.dlgConfig=ConfigDialog(self)