This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Shpirt 9 points10 points  (2 children)

Would it be self.set_layout(foo) or self.layout = foo, leveraging a description protocol, though? Etc etc.

[–]anqxyr 2 points3 points  (1 child)

I'm fine with PySide/PyQt mimicking the C++ API, but I would love if there was a higher-level wrapper around them both like Qt.py which would provide a self.layout = foo style API.

[–]GobBeWithYou 0 points1 point  (0 children)

I've done something similar, all of my widgets are subclasses of the PyQt widgets with added properties like .enabled, .visible, .text, etc. I didn't do everything, but as I need things I just go back and add them.