Changeset fa762f4 in sasview for src/sas/qtgui
- Timestamp:
- Sep 25, 2018 9:06:48 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 624c8747
- Parents:
- 9b9ec10
- git-author:
- Piotr Rozyczko <piotr.rozyczko@…> (09/25/18 09:04:07)
- git-committer:
- Piotr Rozyczko <piotr.rozyczko@…> (09/25/18 09:06:48)
- Location:
- src/sas/qtgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
ree22241 rfa762f4 138 138 self.categoryManagerWidget = CategoryManager(self._parent, manager=self) 139 139 self.grid_window = None 140 self.grid_window = BatchOutputPanel(parent=self) 141 self.grid_subwindow = self._workspace.workspace.addSubWindow(self.grid_window) 142 self.grid_subwindow.setVisible(False) 143 self.grid_window.windowClosedSignal.connect(lambda: self.grid_subwindow.setVisible(False)) 144 140 145 self._workspace.toolBar.setVisible(LocalConfig.TOOLBAR_SHOW) 141 146 self._workspace.actionHide_Toolbar.setText("Show Toolbar") … … 616 621 Display/redisplay the batch fit viewer 617 622 """ 618 if self.grid_window is None: 619 self.grid_window = BatchOutputPanel(parent=self, output_data=output_data) 620 subwindow = self._workspace.workspace.addSubWindow(self.grid_window) 621 622 #self.grid_window = BatchOutputPanel(parent=self, output_data=output_data) 623 self.grid_window.show() 624 return 623 self.grid_subwindow.setVisible(True) 625 624 if output_data: 626 625 self.grid_window.addFitResults(output_data) 627 self.grid_window.show()628 if self.grid_window.windowState() == Qt.WindowMinimized:629 self.grid_window.setWindowState(Qt.WindowActive)630 626 631 627 def actionHide_Toolbar(self): -
src/sas/qtgui/MainWindow/UnitTesting/GuiManagerTest.py
r768387e0 rfa762f4 61 61 self.assertIsInstance(self.manager.ackWidget, Acknowledgements) 62 62 self.assertIsInstance(self.manager.aboutWidget, AboutBox) 63 self.assertIsInstance(self.manager.welcomePanel, WelcomePanel)63 #self.assertIsInstance(self.manager.welcomePanel, WelcomePanel) 64 64 65 65 def skip_testLogging(self): -
src/sas/qtgui/MainWindow/UnitTesting/MainWindowTest.py
r8353d90 rfa762f4 47 47 tmp_main.showMaximized() 48 48 # See that only one subwindow is up 49 self.assertEqual(len(tmp_main.workspace.subWindowList()), 1)49 self.assertEqual(len(tmp_main.workspace.subWindowList()), 2) 50 50 # and that the subwindow is the fitting perspective 51 51 self.assertIsInstance(tmp_main.workspace.subWindowList()[0].widget(), -
src/sas/qtgui/Utilities/GridPanel.py
r7879745 rfa762f4 18 18 ERROR_COLUMN_CAPTION = " (Err)" 19 19 IS_WIN = (sys.platform == 'win32') 20 windowClosedSignal = QtCore.pyqtSignal() 20 21 def __init__(self, parent = None, output_data=None): 21 22 … … 54 55 # Fill in the table from input data 55 56 self.setupTable(widget=self.tblParams, data=output_data) 56 #TODO: This is not what was inteded to be.57 57 if output_data is not None: 58 58 # Set a table tooltip describing the model … … 64 64 Overwrite QDialog close method to allow for custom widget close 65 65 """ 66 # Maybe we should just minimize67 self. setWindowState(QtCore.Qt.WindowMinimized)66 # notify the parent so it hides this window 67 self.windowClosedSignal.emit() 68 68 event.ignore() 69 69 … … 153 153 Create a new tab with batch fitting results 154 154 """ 155 self.addTabPage() 155 if self.has_data: 156 self.addTabPage() 156 157 # Update the new widget 157 158 # Fill in the table from input data in the last/newest page
Note: See TracChangeset
for help on using the changeset viewer.