def __init__(self, parent=None): QtGui.QMainWindow.__init__(self) self.msUi = Ui_MSMainWindow() self.msUi.setupUi(self) self.connect(self.msUi.msClickHere, QtCore.SIGNAL('clicked()'), self.onClickHere)
class MSExampleWindow(QtGui.QMainWindow): def __init__(self, parent=None): QtGui.QMainWindow.__init__(self) self.msUi = Ui_MSMainWindow() self.msUi.setupUi(self) self.connect(self.msUi.msClickHere, QtCore.SIGNAL('clicked()'), self.onClickHere) def onClickHere(self): selectedItems = self.msUi.msComboBox.checkedItems() for item in selectedItems: print item print ("=" * 25)
class MSExampleWindow(QtGui.QMainWindow): def __init__(self, parent=None): QtGui.QMainWindow.__init__(self) self.msUi = Ui_MSMainWindow() self.msUi.setupUi(self) self.connect(self.msUi.msClickHere, QtCore.SIGNAL('clicked()'), self.onClickHere) def onClickHere(self): selectedItems = self.msUi.msComboBox.checkedItems() for item in selectedItems: print item print("=" * 25)