pyqt5 event handlers not printing to console

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pyqt5 event handlers not printing to console

deepak mathur
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.

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt