Changeset 304d082 in sasview for src/sas/qtgui/MainWindow/GuiManager.py
- Timestamp:
- Oct 31, 2017 10:00:59 AM (7 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:
- 6280464
- Parents:
- 0849aec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
r0849aec r304d082 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 … … 192 191 193 192 # Resize to the workspace height 194 workspace_height = self._workspace.workspace.sizeHint().height() 195 perspective_size = self._current_perspective.sizeHint() 196 if workspace_height < perspective_size.height(): 197 perspective_width = perspective_size.width() 198 self._current_perspective.resize(perspective_width, workspace_height-10) 193 #workspace_height = self._workspace.workspace.sizeHint().height() 194 #perspective_size = self._current_perspective.sizeHint() 195 #if workspace_height < perspective_size.height(): 196 # perspective_width = perspective_size.width() 197 # self._current_perspective.resize(perspective_width, workspace_height-10) 198 199 199 self._current_perspective.show() 200 200
Note: See TracChangeset
for help on using the changeset viewer.