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) 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) elif self.ui.cleatRdBtn.isChecked(): QtGui.QMessageBox.about(self,"INFO","Cleat connection design is coming soon!") elif self.ui.endPlateRdBtn.isChecked(): QtGui.QMessageBox.about(self,"INFO","End plate connection design is coming soon!") elif self.ui.seatedRdBtn.isChecked(): QtGui.QMessageBox.about(self,"INFO","Seated connection design is coming soon!") else: QtGui.QMessageBox.about(self,"INFO","Please select appropriate connection")
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) self.ui.shearBtnStart.clicked.connect(self.showFinPlate)