Changeset c82fd8f in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Oct 25, 2017 4:01:01 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:
- ced1bff
- Parents:
- 83710be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/GPUOptions.py
r83710be rc82fd8f 45 45 i = 0 46 46 self.sas_open_cl = os.environ.get("SAS_OPENCL", "") 47 self.setWindowFlags(self.windowFlags() | QtCore.Qt.CustomizeWindowHint) 48 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowCloseButtonHint) 47 49 for title, descr in cl_tuple: 48 50 checkBox = QtGui.QCheckBox(self.openCLCheckBoxGroup) … … 111 113 Close the window without modifying SAS_OPENCL 112 114 """ 113 # FIXME: Reset option to original value 114 self.close() 115 self.open() 115 self.closeEvent(None) 116 self.parent.gpu_options_widget.open() 116 117 117 118 def accept(self): … … 131 132 132 133 reload(sasmodels.core) 133 super(GPUOptions, self). accept()134 super(GPUOptions, self).reject() 134 135 135 136 def closeEvent(self, event): … … 137 138 Overwrite QDialog close method to allow for custom widget close 138 139 """ 139 self. parent.gpu_options_widget = reload(GPUOptions(self))140 self. reject()140 self.close() 141 self.parent.gpu_options_widget = GPUOptions(self) 141 142 142 143
Note: See TracChangeset
for help on using the changeset viewer.