Hi all, I am trying to 'scale' down the gui so as to reduce the spacing 
between my widgets whenever the tool is called.

I tried using `setFixedSize`, while it does seems to scales down to what I 
had wanted, but the window, see attached, stays as it is and it is not 
being scaled down with it.
As such, this has results in extra blank unnecessary spaces.

[image: gui_resize_issue.png]


My GUI comes from using qt-designer and the following is a small code 
portion of the GUI initialization:
class MyTool(MayaQWidgetDockableMixin, QtWidgets.QWidget):
    def __init__(self, parent=None, dockable=True):
        super(MyTool, self).__init__(parent=parent)

        # self.ui comes from a qt-designer file
        self.ui = Ui_MyTestWidget()
        self.ui.setupUi(self)

        # set other methods/ connections etc...
        ...
        ...

        # Attempting to 'scale' down the widgets, seems to work but not for 
the window
        # using self.adjustSize() does not seems to be doing anything
        self.setFixedSize(890, 505)


This is how I called upon my GUI:
import main_tool
app = main_tool.MyTool()

Appreciate for any insights!

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/11579ffc-d7e2-4716-a70b-80e6dd6457a6%40googlegroups.com.

Reply via email to