summaryrefslogtreecommitdiff
path: root/osdagMainPage.py
diff options
context:
space:
mode:
authordeepa-chaudhari2015-06-16 18:08:39 +0530
committerdeepa-chaudhari2015-06-16 18:08:39 +0530
commit2c1e750c049e75aec9eed68cb8eef162a10eac52 (patch)
tree5af4ddc0dfab179668e6bf1b244e87446b36197d /osdagMainPage.py
parentae6da92ff79412f0802b2cf5a496bb95a29401d9 (diff)
downloadOsdagLive-2c1e750c049e75aec9eed68cb8eef162a10eac52.tar.gz
OsdagLive-2c1e750c049e75aec9eed68cb8eef162a10eac52.tar.bz2
OsdagLive-2c1e750c049e75aec9eed68cb8eef162a10eac52.zip
Osdagmain page
Diffstat (limited to 'osdagMainPage.py')
-rw-r--r--osdagMainPage.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/osdagMainPage.py b/osdagMainPage.py
new file mode 100644
index 0000000..8665cbc
--- /dev/null
+++ b/osdagMainPage.py
@@ -0,0 +1,35 @@
+'''
+Created on 16-Jun-2015
+
+@author: deepa
+'''
+import sys
+from PyQt4 import QtGui,QtCore
+from ui_osdagpage import Ui_MainWindow
+
+class OsdagMainWindow(QtGui.QMainWindow):
+
+
+
+
+
+ def __init__(self):
+ QtGui.QMainWindow.__init__(self)
+ self.ui = Ui_MainWindow()
+ self.ui.setupUi(self)
+
+ self.ui.myListWidget.currentItemChanged.connect(self.changePage)
+ self.ui.myListWidget.setCurrentRow(0)
+
+ def changePage(self, current, previous):
+ if not current:
+ current = previous
+
+ self.ui.myStackedWidget.setCurrentIndex(self.ui.myListWidget.row(current))
+
+
+if __name__ == '__main__':
+ app = QtGui.QApplication(sys.argv)
+ window = OsdagMainWindow()
+ window.show()
+ sys.exit(app.exec_()) \ No newline at end of file