Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestUI(QtGui.QDialog):
- super(TestUI, self).__init__(parent)
- # ... dialog setup ...
- self.okBtn = QtGui.QPushButton('ok')
- self.cancelBtn = QtGui.QPushButton('cancel')
- self.okButton.clicked.connect(self.okButtonCallback)
- self.cancelBtn.clicked.connect(self.cancelBtnCallback)
- def okButonCallback(self):
- self.close()
- return True # Can I return a variable from here???
- def canccelButtonCallback(self):
- self.close()
- return False
- foo = TestUI()
- foo.show()
- print foo # ???? is there a way to get the return value????
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement