From 0f88c02f2e55cf842841643effa822bc12598e74 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Tue, 15 Jan 2019 18:10:03 +0100 Subject: [PATCH] make sure the window is big enough at startup --- qtgui/mainwindow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qtgui/mainwindow.py b/qtgui/mainwindow.py index 90c547f..59c4572 100644 --- a/qtgui/mainwindow.py +++ b/qtgui/mainwindow.py @@ -128,6 +128,7 @@ class MainWindow(TemplateMainWindow): self.patternGrid = PatternGrid(parentView=self.ui.gridView) self.ui.gridView.setScene(self.patternGrid) + #Toolbar, which needs the widgets above already established self._populateToolbar() @@ -140,6 +141,9 @@ class MainWindow(TemplateMainWindow): #However, we need the engine to be ready. self.chooseCurrentTrack(api.session.data.tracks[0].export()) #By Grabthar's hammer, by the suns of Worvan, what a hack! #TODO: Access to the sessions data structure directly instead of api. Not good. Getter function or api @property is cleaner. + self.setWindowState(QtCore.Qt.WindowMaximized) + self.ui.gridView.horizontalScrollBar().setSliderPosition(0) + self.ui.gridView.verticalScrollBar().setSliderPosition(0) def callback_numberOfTracksChanged(self, exportDictList):