Re:PyQt5 Tutorial: Create a Python GUI in 2018
by blattimwind on Tuesday September 25, 2018 @02:47PM
(#18069243)
Since Python 3 you can use exec() instead of exec_() (in Python 2 exec was a keyword).
> And the fact the label magically attaches to the app through some side effect is also confusing.
Are you referring to the first "label.show()" example?
Typically that pattern is rare (~once per app for the main window). Regarding attachment to the app; QApplication is a process-wide singleton. All objects belong to the same app.
> And the fact the label magically attaches to the app through some side effect is also confusing.
Are you referring to the first "label.show()" example?
Typically that pattern is rare (~once per app for the main window). Regarding attachment to the app; QApplication is a process-wide singleton. All objects belong to the same app.