[PyQt] pyqt5 event handlers not printing to console
deepak mathur
mathurdeepak13 at gmail.com
Tue Dec 5 17:35:24 GMT 2017
hi,
I've got a pythonInterpreter implementation running pyQt5 commands and
main.cpp
However any prints from within the button click events don't appear on the
console.
def initUI(self):
btn = QPushButton("Offset",self)
btn.clicked.connect(self.clickMethod)
fbox.addRow(btn)
self.setWindowTitle('Set Translation Offset')
self.show()
def clickMethod(self):
print("button clicked")
in the e.g. above - "button clicked" never gets printed when the button is
clicked.
Any help would be very helpful.
thank.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171205/b622e366/attachment.html>
More information about the PyQt
mailing list