diff options
author | deepa-chaudhari | 2015-06-17 00:20:33 +0530 |
---|---|---|
committer | deepa-chaudhari | 2015-06-17 00:20:33 +0530 |
commit | 7fc9e5a0f77f3cb1225e4d253dc4a640380eed2d (patch) | |
tree | 3e1f44a6bfc24992859e37977d93c0230d53da09 /osdagMainPage.py | |
parent | 2c1e750c049e75aec9eed68cb8eef162a10eac52 (diff) | |
download | OsdagLive-7fc9e5a0f77f3cb1225e4d253dc4a640380eed2d.tar.gz OsdagLive-7fc9e5a0f77f3cb1225e4d253dc4a640380eed2d.tar.bz2 OsdagLive-7fc9e5a0f77f3cb1225e4d253dc4a640380eed2d.zip |
osdag main page functionality
Diffstat (limited to 'osdagMainPage.py')
-rw-r--r-- | osdagMainPage.py | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/osdagMainPage.py b/osdagMainPage.py index 8665cbc..981f3a2 100644 --- a/osdagMainPage.py +++ b/osdagMainPage.py @@ -6,13 +6,14 @@ Created on 16-Jun-2015 import sys from PyQt4 import QtGui,QtCore from ui_osdagpage import Ui_MainWindow +from Connections.Shear.Finplate.finPlateMain import launchFinPlateController +#from finPlateMain import * + +#from finPlateMain import launchFinPlateController + class OsdagMainWindow(QtGui.QMainWindow): - - - - def __init__(self): QtGui.QMainWindow.__init__(self) self.ui = Ui_MainWindow() @@ -20,12 +21,30 @@ class OsdagMainWindow(QtGui.QMainWindow): self.ui.myListWidget.currentItemChanged.connect(self.changePage) self.ui.myListWidget.setCurrentRow(0) + self.ui.shearBtnStart.clicked.connect(self.showFinPlate) def changePage(self, current, previous): if not current: current = previous self.ui.myStackedWidget.setCurrentIndex(self.ui.myListWidget.row(current)) + + def showFinPlate(self): + + if self.ui.finPlateRdBtn.isChecked(): + launchFinPlateController(self) + #QtGui.QMessageBox.about(self,"info","finplate clicked") + elif self.ui.cleatRdBtn.isChecked(): + QtGui.QMessageBox.about(self,"info","cleat clicked") + elif self.ui.endPlateRdBtn.isChecked(): + QtGui.QMessageBox.about(self,"info","endplateclicked") + elif self.ui.seatedRdBtn.isChecked(): + QtGui.QMessageBox.about(self,"info","seated clicked") + else: + QtGui.QMessageBox.about(self,"info","Please select desire radio button") + + + if __name__ == '__main__': |