python - Spacing between subplots and buttons PyQT4 GUI -
i new pyqt4 , building gui application plots data extracted files after clicking button. using grid layout add plots , buttons on gui window. need align buttons right end of gui such subplots column has more space , stretches both horizontally , vertically better view. here snippet of code way creating grid layout , adding widgets it.
grid = qtgui.qgridlayout() grid.addwidget(self.canvas) grid.setspacing(10) grid.addwidget(controlbutton1,0,1) grid.addwidget(controlbutton2,1,1) grid.addwidget(controlbutton3,2,1) self.setlayout(grid)
a sample gui window can seen below.
is there possible way this? looked in box layout of pyqt4 not sure if box layout can fit in grid or vice versa.
any possible appreciated.
Comments
Post a Comment