PyQt5: Make QPushButton close all open program windows
I'm trying to follow this tutorial, however it's made for PyQt4 whilst I'm
using PyQt5.
I have a QPushButton object called btn and want its clicked() signal to
trigger the QApplication closeAllWindows() slot. I've read the
documentation but it doesn't seem to help, I'm new to Python.
Does anybody know how to do this?
No comments:
Post a Comment