Does anyone know if there's any good shim/wrapper around PyQt that has a better API?
Does anyone know if there's any good shim/wrapper around PyQt that has a better API?
Having used much worse Python bindings for other C++ libraries, the degree to which PyQt just works without blowing up in your face is itself pretty astonishing. Add to that the maturity and depth of the Qt Widget library, and the result is a real pleasure to use.
Knowing some of my coworkers, though (who use Python daily), I can understand why it'd be jarring.
> 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.