Changeset 7969b9c in sasview for src/sas/qtgui/MainWindow/GuiManager.py
- Timestamp:
- Nov 9, 2017 8:43:07 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- fbfc488
- Parents:
- 4992ff2
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/31/17 10:00:59)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
r4992ff2 r7969b9c 77 77 78 78 # Invoke the initial perspective 79 self.perspectiveChanged("Fitting")79 #self.perspectiveChanged("Fitting") 80 80 self.addWidgets() 81 81 … … 91 91 # Set up the status bar 92 92 self.statusBarSetup() 93 94 93 # Show the Welcome panel 95 94 self.welcomePanel = WelcomePanel() … … 117 116 118 117 self.dockedFilesWidget = QDockWidget("Data Explorer", self._workspace) 119 self.dockedFilesWidget.setFloating( True)118 self.dockedFilesWidget.setFloating(False) 120 119 self.dockedFilesWidget.setWidget(self.filesWidget) 121 120 122 121 # Disable maximize/minimize and close buttons 123 122 self.dockedFilesWidget.setFeatures(QDockWidget.NoDockWidgetFeatures) 124 self.dockedFilesWidget.setFeatures(Qt.LeftDockWidgetArea) 125 126 self._workspace. workspace.addDockWidget(Qt.LeftDockWidgetArea, self.dockedFilesWidget)123 124 #self._workspace.workspace.addDockWidget(Qt.LeftDockWidgetArea, self.dockedFilesWidget) 125 self._workspace.addDockWidget(Qt.LeftDockWidgetArea, self.dockedFilesWidget) 127 126 128 127 # Add the console window as another docked widget … … 132 131 self.listWidget = QTextBrowser() 133 132 self.logDockWidget.setWidget(self.listWidget) 134 self._workspace. workspace.addDockWidget(Qt.BottomDockWidgetAre, self.logDockWidget)133 self._workspace.addDockWidget(Qt.BottomDockWidgetArea, self.logDockWidget) 135 134 136 135 # Add other, minor widgets … … 199 198 200 199 # Resize to the workspace height 201 workspace_height = self._workspace.workspace.sizeHint().height() 202 perspective_size = self._current_perspective.sizeHint() 203 if workspace_height < perspective_size.height(): 204 perspective_width = perspective_size.width() 205 self._current_perspective.resize(perspective_width, workspace_height-10) 200 #workspace_height = self._workspace.workspace.sizeHint().height() 201 #perspective_size = self._current_perspective.sizeHint() 202 #if workspace_height < perspective_size.height(): 203 # perspective_width = perspective_size.width() 204 # self._current_perspective.resize(perspective_width, workspace_height-10) 205 206 206 self._current_perspective.show() 207 207
Note: See TracChangeset
for help on using the changeset viewer.