Closed twardoch closed 5 years ago
Thank you @twardoch !
Basically, it's another proxy :) I actually like the proxy system. I'm more and more inclined to think that this is the proper way of writing code: write your complex classes in a private module, and then write a proxy module that REALLY is the API. For something like Qt, it wouldn't be a full proxy (and it's used here differently), but for something one writes himself, sure.
BTW, there is this https://pypi.org/project/Qt.py/ which hides the differences between PyQt and PySide. It doesn't have PythonQt but it would be worthwhile adding it (doesn't look complicated, it's just work), and then you'd be free to write for any of these environments.
So... if you like proxies - why not keep the original FL6 API :) no rewriting needed ? :)
This addresses https://github.com/kateliev/TypeRig/issues/17
The result is a very compact appearance on the Mac — but everything fits:
It’s implemented via a new typerig.QtGui module which acts as an adapter of the standard QtGui classes. Currently, it’s not very sophisticated — could be improved. But it’s better than the ugly hack with loading Fusion styling.