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

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)

    self.setWindowTitle('Set Translation Offset')

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.


PyQt mailing list    [hidden email]