Changeset b3e8629 in sasview for src/sas/qtgui/MainWindow/GuiManager.py
- Timestamp:
- Nov 9, 2017 6:41:54 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:
- cee5c78
- Parents:
- 749b715
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/26/17 01:13:05)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 06:41:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
- Property mode changed from 100644 to 100755
r9e54199 rb3e8629 199 199 workspace_height = self._workspace.workspace.sizeHint().height() 200 200 perspective_size = self._current_perspective.sizeHint() 201 if workspace_height < perspective_size.height :201 if workspace_height < perspective_size.height(): 202 202 perspective_width = perspective_size.width() 203 203 self._current_perspective.resize(perspective_width, workspace_height-10) … … 210 210 assert isinstance(data, list) 211 211 if self._current_perspective is not None: 212 self._current_perspective.setData( data.values())212 self._current_perspective.setData(list(data.values())) 213 213 else: 214 214 msg = "No perspective is currently active." … … 254 254 """ 255 255 if self._current_perspective is not None: 256 self._current_perspective.setData( data.values())256 self._current_perspective.setData(list(data.values())) 257 257 else: 258 258 msg = "Guiframe does not have a current perspective" … … 297 297 version_info = json.loads(content) 298 298 self.processVersion(version_info) 299 except ValueError ,ex:299 except ValueError as ex: 300 300 logging.info("Failed to connect to www.sasview.org:", ex) 301 301 … … 329 329 except: 330 330 msg = "guiframe: could not get latest application" 331 msg += " version number\n %s" % sys.exc_ value331 msg += " version number\n %s" % sys.exc_info()[1] 332 332 logging.error(msg) 333 333 msg = "Could not connect to the application server." … … 764 764 not isinstance(new_datalist_item, dict): 765 765 msg = "Wrong data type returned from calculations." 766 raise AttributeError , msg766 raise AttributeError(msg) 767 767 768 768 self.filesWidget.model.appendRow(new_item)
Note: See TracChangeset
for help on using the changeset viewer.