Browse Source

make sure the window is big enough at startup

master
Nils 6 years ago
parent
commit
0f88c02f2e
  1. 4
      qtgui/mainwindow.py

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

Loading…
Cancel
Save