Hey all, I've been trying to figure this out for a bit without luck - I'm trying to find a way to create a recommended or default size for a Pyside widget (windows, buttons, etc...). I don't want to use something like .setFixedSize() because I still want things to change if the user resizes the window. In all my research I always end up being directed toward .sizeHint(), but I'm having a hard time figuring out how to use it. In my (incorrect) approach, I'd want to be able to do something like:
self.button.sizeHint(75,30) But clearly it doesn't work like that. The documentation says "This property holds the recommended size for the widget.", but I don't get where you input the values to recommend the size? Does anyone have an example that might help me figure out how to properly set something like this up? Thanks so much! -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/eb58086b-58fc-4bb3-b228-5644826f1026%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
