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):