|
|
|
|
|
by scarygliders
1042 days ago
|
|
I could. But I 100% take full advantage of Qt's signal and slot mechanism. Also, in many ways, GUI applications written in Python are not so much CPU bound, but Python GIL bound. If you're writing a Python/Qt application, you have to take great care to ensure your GUI doesn't freeze when your program is performing, say, many database inserts; if you have some naive loop which performs some given operation, your nice Qt GUI will freeze right up until that operation is complete. Right now the solution is to perform such operations in, say, a QThread, and use Qt's signal/slot feature to blat a progress "report" to a handler in the `main` Python loop. So back to what I said - no-GIL is looking quite interesting to me. Whether or not Qt can take advantage of such will be a different matter. |
|