News for hackers. Stuff that matters.
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.

Re:PyQt5 Tutorial: Create a Python GUI in 2018 by ehsankia on Wednesday September 26, 2018 @05:28PM (#18080435)
Thank you for the explanation, and the keyword issue makes sense.