I want to call that function with parameters, though. Does that mean that I need to write a function handler specifically for calling my function with parameters? I don't understand the difference if the function is just going to be called either way.
Posts made by errolflynn
RE: PyQt immediately calling function handler upon setup. Why?
PyQt immediately calling function handler upon setup. Why?
Hi, I'm setting up a Python GUI using Qt5, QtCreator, pyuic, and some other stuff. My main app class inherits from QMainWindow and my UI. My initialization method calls a method that connects a button to a function handler with the following call:
However, as per normal app operations, when the button is clicked without proper setup, it throws an error. My two questions are why is this button being clicked upon a call to the connect() method? And how can I catch this error to resume normal operations?