Changeset 07d744c in sasview
- Timestamp:
- Jan 14, 2019 4:45:33 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
- Children:
- 593b536d
- Parents:
- 1c98850 (diff), c3fc919 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/qtgui
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/DataOperationUtilityPanel.py
r42787fb r33c0561 26 26 self.manager = parent 27 27 self.communicator = self.manager.communicator() 28 # disable the context help icon 29 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 28 30 29 31 # To store input datafiles -
src/sas/qtgui/Calculators/DensityPanel.py
rb6f47be r33c0561 48 48 self.manager = parent 49 49 self.setupUi() 50 # disable the context help icon 51 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 52 50 53 self.setupModel() 51 54 self.setupMapper() -
src/sas/qtgui/Calculators/GenericScatteringCalculator.py
r8c85ac1 r33c0561 38 38 super(GenericScatteringCalculator, self).__init__() 39 39 self.setupUi(self) 40 # disable the context help icon 41 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 42 40 43 self.manager = parent 41 44 self.communicator = self.manager.communicator() -
src/sas/qtgui/Calculators/KiessigPanel.py
rccdee50 r33c0561 15 15 super(KiessigPanel, self).__init__() 16 16 self.setupUi(self) 17 # disable the context help icon 18 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 17 19 18 20 self.setWindowTitle("Kiessig Thickness Calculator") -
src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py
r93c813f r33c0561 41 41 super(ResolutionCalculatorPanel, self).__init__() 42 42 self.setupUi(self) 43 # disable the context help icon 44 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 45 43 46 self.manager = parent 44 47 -
src/sas/qtgui/Calculators/SldPanel.py
rbd39d6c r33c0561 89 89 90 90 self.setupUi() 91 # disable the context help icon 92 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 93 91 94 self.setupModel() 92 95 self.setupMapper() -
src/sas/qtgui/Calculators/SlitSizeCalculator.py
rfa05c6c1 r33c0561 25 25 super(SlitSizeCalculator, self).__init__() 26 26 self.setupUi(self) 27 # disable the context help icon 28 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 27 29 28 30 self.setWindowTitle("Slit Size Calculator") -
src/sas/qtgui/MainWindow/AboutBox.py
r7385fec r33c0561 1 1 import functools 2 from PyQt5 import QtWidgets 2 from PyQt5 import QtWidgets, QtCore 3 3 4 4 import sas.sasview … … 14 14 super(AboutBox, self).__init__(parent) 15 15 self.setupUi(self) 16 # disable the context help icon 17 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 16 18 17 19 self.setWindowTitle("About") -
src/sas/qtgui/MainWindow/CategoryManager.py
r3d18691 r33c0561 135 135 super(CategoryManager, self).__init__(parent) 136 136 self.setupUi(self) 137 138 # disable the context help icon 139 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 137 140 138 141 self.communicator = manager.communicator() … … 327 330 super(ChangeCategory, self).__init__(parent) 328 331 self.setupUi(self) 332 # disable the context help icon 333 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 329 334 330 335 self.model = model -
src/sas/qtgui/MainWindow/DataExplorer.py
r04a884a rd1ad101 640 640 # Figure out which rows are checked 641 641 ind = -1 642 # Use 'while' so the row count is forced at every iteration 642 643 deleted_items = [] 644 deleted_names = [] 643 645 while ind < self.theory_model.rowCount(): 644 646 ind += 1 645 647 item = self.theory_model.item(ind) 648 646 649 if item and item.isCheckable() and item.checkState() == QtCore.Qt.Checked: 647 650 # Delete these rows from the model 651 deleted_names.append(str(self.theory_model.item(ind).text())) 652 deleted_items.append(item) 653 648 654 self.theory_model.removeRow(ind) 649 655 # Decrement index since we just deleted it 650 656 ind -= 1 651 657 652 # pass temporarily kept as a breakpoint anchor 653 pass 658 # Let others know we deleted data 659 self.communicator.dataDeletedSignal.emit(deleted_items) 660 661 # update stored_data 662 self.manager.update_stored_data(deleted_names) 654 663 655 664 def sendData(self, event=None): … … 1810 1819 raise AttributeError(msg) 1811 1820 1812 # Check if there are any other itemsfor this tab1813 # If so, delete them1821 # Check if there exists an item for this tab 1822 # If so, replace it 1814 1823 current_tab_name = model_item.text() 1815 1824 for current_index in range(self.theory_model.rowCount()): 1816 if current_tab_name == self.theory_model.item(current_index).text(): 1817 self.theory_model.removeRow(current_index) 1818 break 1819 # send in the new item 1825 current_item = self.theory_model.item(current_index) 1826 if current_tab_name == current_item.text(): 1827 # replace data instead 1828 new_data = GuiUtils.dataFromItem(model_item) 1829 current_item.child(0).setData(new_data) 1830 return current_item 1831 1832 # add the new item to the model 1820 1833 self.theory_model.appendRow(model_item) 1834 return model_item 1821 1835 1822 1836 def deleteIntermediateTheoryPlotsByModelID(self, model_id): -
src/sas/qtgui/MainWindow/GuiManager.py
rb1626bea r33c0561 59 59 QDialog.__init__(self, parent) 60 60 self.setupUi(self) 61 # disable the context help icon 62 self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) 63 61 64 62 65 class GuiManager(object): … … 1049 1052 Send the request to the DataExplorer for updating the theory model. 1050 1053 """ 1051 self.filesWidget.updateTheoryFromPerspective(index) 1054 item = self.filesWidget.updateTheoryFromPerspective(index) 1055 # Now notify the perspective that the item was/wasn't replaced 1056 per = self.perspective() 1057 if not isinstance(per, FittingWindow): 1058 # currently only fitting supports generation of theories. 1059 return 1060 per.currentTab.setTheoryItem(item) 1052 1061 1053 1062 def deleteIntermediateTheoryPlotsByModelID(self, model_id): -
src/sas/qtgui/MainWindow/MainWindow.py
r09b7da68 r33c0561 60 60 splash.show() 61 61 app.setAttribute(Qt.AA_EnableHighDpiScaling) 62 62 63 # fix for pyinstaller packages app to avoid ReactorAlreadyInstalledError 63 64 import sys -
src/sas/qtgui/MainWindow/UI/MainWindowUI.ui
r09b7da68 rc3fc919 75 75 <addaction name="actionHide_LogExplorer"/> 76 76 <addaction name="separator"/> 77 <addaction name="actionMinimizePlots"/>78 <addaction name="actionClosePlots"/>79 <addaction name="separator"/>80 77 <addaction name="actionStartup_Settings"/> 81 78 </widget> … … 129 126 <addaction name="actionNext"/> 130 127 <addaction name="actionPrevious"/> 128 <addaction name="separator"/> 129 <addaction name="actionMinimizePlots"/> 130 <addaction name="actionClosePlots"/> 131 131 </widget> 132 132 <widget class="QMenu" name="menuAnalysis"> -
src/sas/qtgui/Perspectives/Fitting/ComplexConstraint.py
r9c207f5 rcf9f39e 26 26 constraintReadySignal = QtCore.pyqtSignal(tuple) 27 27 def __init__(self, parent=None, tabs=None): 28 super(ComplexConstraint, self).__init__( )28 super(ComplexConstraint, self).__init__(parent) 29 29 30 30 self.setupUi(self) 31 31 self.setModal(True) 32 33 # disable the context help icon 34 windowFlags = self.windowFlags() 35 self.setWindowFlags(windowFlags & ~QtCore.Qt.WindowContextHelpButtonHint) 32 36 33 37 # Useful globals … … 61 65 self.cmdOK.clicked.connect(self.onApply) 62 66 self.cmdHelp.clicked.connect(self.onHelp) 67 self.cmdAddAll.clicked.connect(self.onSetAll) 68 63 69 self.txtConstraint.editingFinished.connect(self.validateFormula) 64 70 self.cbModel1.currentIndexChanged.connect(self.onModelIndexChange) … … 78 84 self.setupParamWidgets() 79 85 86 80 87 self.setupMenu() 81 88 82 89 def setupMenu(self): 83 # Add menu to the Applybutton, if necessary90 # Show Add All button, if necessary 84 91 if self.cbModel1.currentText() ==self.cbModel2.currentText(): 85 self.cmdOK.setArrowType(QtCore.Qt.NoArrow) 86 self.cmdOK.setPopupMode(QtWidgets.QToolButton.DelayedPopup) 87 self.cmdOK.setMenu(None) 88 return 89 self.all_menu = QtWidgets.QMenu() 90 self.actionAddAll = QtWidgets.QAction(self) 91 self.actionAddAll.setObjectName("actionAddAll") 92 self.actionAddAll.setText(QtCore.QCoreApplication.translate("self", "Add all")) 93 ttip = "Add constraints between all identically named parameters in both fitpages" 94 self.actionAddAll.setToolTip(ttip) 95 self.actionAddAll.triggered.connect(self.onSetAll) 96 self.all_menu.addAction(self.actionAddAll) 97 # https://bugreports.qt.io/browse/QTBUG-13663 98 self.all_menu.setToolTipsVisible(True) 99 self.cmdOK.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup) 100 self.cmdOK.setArrowType(QtCore.Qt.DownArrow) 101 self.cmdOK.setMenu(self.all_menu) 92 self.cmdAddAll.setVisible(False) 93 else: 94 self.cmdAddAll.setVisible(True) 95 return 102 96 103 97 def setupParamWidgets(self): … … 127 121 if len(items1)==0: 128 122 self.cmdOK.setEnabled(False) 123 self.cmdAddAll.setEnabled(False) 129 124 txt = "No parameters in model "+self.tab_names[0] +\ 130 125 " are available for constraining." … … 132 127 else: 133 128 self.cmdOK.setEnabled(True) 129 self.cmdAddAll.setEnabled(True) 134 130 txt = "" 135 131 self.lblWarning.setText(txt) … … 193 189 if not formula_is_valid: 194 190 self.cmdOK.setEnabled(False) 191 self.cmdAddAll.setEnabled(False) 195 192 self.txtConstraint.setStyleSheet("QLineEdit {background-color: red;}") 196 193 else: 197 194 self.cmdOK.setEnabled(True) 195 self.cmdAddAll.setEnabled(True) 198 196 self.txtConstraint.setStyleSheet("QLineEdit {background-color: white;}") 199 197 -
src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
r2e5081b r33c0561 112 112 self.parent = parent 113 113 self.setupUi(self) 114 114 115 self.currentType = "FitPage" 115 116 # Page id for fitting … … 214 215 tab_object = ObjectLibrary.getObject(tab) 215 216 216 # Disconnect all local slots 217 #tab_object.disconnect() 217 # Disconnect all local slots, if connected 218 if tab_object.receivers(tab_object.newModelSignal) > 0: 219 tab_object.newModelSignal.disconnect() 220 if tab_object.receivers(tab_object.constraintAddedSignal) > 0: 221 tab_object.constraintAddedSignal.disconnect() 218 222 219 223 # Reconnect tab signals to local slots -
src/sas/qtgui/Perspectives/Fitting/FittingOptions.py
r8873ab7 r33c0561 41 41 super(FittingOptions, self).__init__(parent) 42 42 self.setupUi(self) 43 # disable the context help icon 44 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 43 45 44 46 self.config = config -
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r9817207 rcf9f39e 653 653 num_rows = model.rowCount() 654 654 if num_rows < 1: 655 return None655 return param 656 656 657 657 for row in range(num_rows): -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rce67f35 rbbcf9f0 284 284 # Data for chosen model 285 285 self.model_data = None 286 self._previous_model_index = 0 286 287 287 288 # Which shell is being currently displayed? … … 2020 2021 React to changes in the smearing widget 2021 2022 """ 2023 # update display 2024 smearing, accuracy, smearing_min, smearing_max = self.smearing_widget.state() 2025 self.lblCurrentSmearing.setText(smearing) 2022 2026 self.calculateQGridForModel() 2023 2027 … … 2619 2623 """ 2620 2624 name = self.nameFromData(fitted_data) 2621 # Notify the GUI manager so it can create the theory model in DataExplorer 2622 self.theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 2623 self.communicate.updateTheoryFromPerspectiveSignal.emit(self.theory_item) 2625 # Modify the item or add it if new 2626 theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 2627 self.communicate.updateTheoryFromPerspectiveSignal.emit(theory_item) 2628 2629 def setTheoryItem(self, item): 2630 """ 2631 Reset the theory item based on the data explorer update 2632 """ 2633 self.theory_item = item 2624 2634 2625 2635 def nameFromData(self, fitted_data): -
src/sas/qtgui/Perspectives/Fitting/GPUOptions.py
r8479735 r33c0561 45 45 self.parent = parent 46 46 self.setupUi(self) 47 # disable the context help icon 48 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 47 49 self.addOpenCLOptions() 48 50 self.createLinks() -
src/sas/qtgui/Perspectives/Fitting/MultiConstraint.py
r09e0c32 rcf9f39e 10 10 11 11 from PyQt5 import QtWidgets 12 from PyQt5 import QtCore 12 13 13 14 import sas.qtgui.Utilities.GuiUtils as GuiUtils … … 25 26 params: tuple of strings describing model parameters 26 27 """ 27 super(MultiConstraint, self).__init__( )28 super(MultiConstraint, self).__init__(parent) 28 29 29 30 self.setupUi(self) 30 31 self.setModal(True) 32 33 # disable the context help icon 34 windowFlags = self.windowFlags() 35 self.setWindowFlags(windowFlags & ~QtCore.Qt.WindowContextHelpButtonHint) 36 31 37 self.params = params 32 38 self.parent = parent -
src/sas/qtgui/Perspectives/Fitting/UI/ComplexConstraintUI.ui
r2e5081b r33c0561 139 139 <property name="sizeHint" stdset="0"> 140 140 <size> 141 <width> 88</width>141 <width>58</width> 142 142 <height>20</height> 143 143 </size> … … 146 146 </item> 147 147 <item> 148 <widget class="QToolButton" name="cmdOK"> 148 <widget class="QToolButton" name="cmdAddAll"> 149 <property name="sizePolicy"> 150 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 151 <horstretch>0</horstretch> 152 <verstretch>0</verstretch> 153 </sizepolicy> 154 </property> 149 155 <property name="minimumSize"> 150 156 <size> … … 154 160 </property> 155 161 <property name="toolTip"> 162 <string><html><head/><body><p>Add constraints between all identically named parameters in both fitpages</p></body></html></string> 163 </property> 164 <property name="text"> 165 <string>Add All</string> 166 </property> 167 <property name="popupMode"> 168 <enum>QToolButton::InstantPopup</enum> 169 </property> 170 <property name="toolButtonStyle"> 171 <enum>Qt::ToolButtonTextOnly</enum> 172 </property> 173 <property name="autoRaise"> 174 <bool>false</bool> 175 </property> 176 <property name="arrowType"> 177 <enum>Qt::DownArrow</enum> 178 </property> 179 </widget> 180 </item> 181 <item> 182 <widget class="QToolButton" name="cmdOK"> 183 <property name="sizePolicy"> 184 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 185 <horstretch>0</horstretch> 186 <verstretch>0</verstretch> 187 </sizepolicy> 188 </property> 189 <property name="minimumSize"> 190 <size> 191 <width>93</width> 192 <height>28</height> 193 </size> 194 </property> 195 <property name="toolTip"> 156 196 <string><html><head/><body><p>Add the constraint as defined by the above expression.</p></body></html></string> 157 197 </property> … … 170 210 <property name="arrowType"> 171 211 <enum>Qt::DownArrow</enum> 172 </property>173 </widget>174 </item>175 <item>176 <widget class="QPushButton" name="cmdCancel">177 <property name="toolTip">178 <string><html><head/><body><p>Close the window.</p></body></html></string>179 </property>180 <property name="text">181 <string>Close</string>182 212 </property> 183 213 </widget> … … 195 225 </widget> 196 226 <resources/> 197 <connections> 198 <connection> 199 <sender>cmdCancel</sender> 200 <signal>clicked()</signal> 201 <receiver>ComplexConstraintUI</receiver> 202 <slot>reject()</slot> 203 <hints> 204 <hint type="sourcelabel"> 205 <x>230</x> 206 <y>144</y> 207 </hint> 208 <hint type="destinationlabel"> 209 <x>179</x> 210 <y>82</y> 211 </hint> 212 </hints> 213 </connection> 214 </connections> 227 <connections/> 215 228 </ui> -
src/sas/qtgui/Plotting/AddText.py
r53c771e r33c0561 12 12 super(AddText, self).__init__(parent) 13 13 self.setupUi(self) 14 # disable the context help icon 15 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 14 16 15 17 self._font = QtGui.QFont() -
src/sas/qtgui/Plotting/ColorMap.py
r8fad50b r33c0561 28 28 self.setupUi(self) 29 29 assert(isinstance(data, Data2D)) 30 # disable the context help icon 31 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 30 32 31 33 self.data = data -
src/sas/qtgui/Plotting/LinearFit.py
re4c475b7 r33c0561 30 30 31 31 self.setupUi(self) 32 # disable the context help icon 33 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 34 32 35 assert(isinstance(max_range, tuple)) 33 36 assert(isinstance(fit_range, tuple)) -
src/sas/qtgui/Plotting/MaskEditor.py
ra0ad146 r33c0561 3 3 import numpy as np 4 4 5 from PyQt5 import QtWidgets 5 from PyQt5 import QtWidgets, QtCore 6 6 7 7 from sas.qtgui.Plotting.PlotterData import Data2D … … 24 24 25 25 self.setupUi(self) 26 # disable the context help icon 27 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 26 28 27 29 self.data = data -
src/sas/qtgui/Plotting/PlotProperties.py
rfacf4ca r33c0561 18 18 super(PlotProperties, self).__init__(parent) 19 19 self.setupUi(self) 20 # disable the context help icon 21 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 22 20 23 self.setFixedSize(self.minimumSizeHint()) 21 24 -
src/sas/qtgui/Plotting/ScaleProperties.py
r54492dc r33c0561 27 27 super(ScaleProperties, self).__init__(parent) 28 28 self.setupUi(self) 29 # disable the context help icon 30 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 29 31 30 32 # Set up comboboxes -
src/sas/qtgui/Plotting/SetGraphRange.py
rd6b8a1d r33c0561 17 17 18 18 self.setupUi(self) 19 # disable the context help icon 20 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 21 19 22 assert(isinstance(x_range, tuple)) 20 23 assert(isinstance(y_range, tuple)) -
src/sas/qtgui/Plotting/WindowTitle.py
r4992ff2 r33c0561 3 3 from "Graph_n" to any ASCII text. 4 4 """ 5 from PyQt5 import QtWidgets 5 from PyQt5 import QtWidgets, QtCore 6 6 7 7 from sas.qtgui.Plotting.UI.WindowTitleUI import Ui_WindowTitle … … 12 12 super(WindowTitle, self).__init__(parent) 13 13 self.setupUi(self) 14 # disable the context help icon 15 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 16 14 17 self.txtTitle.setText(new_title) 15 18 -
src/sas/qtgui/Utilities/AddMultEditor.py
r287d356 r33c0561 56 56 57 57 self.setupUi(self) 58 # disable the context help icon 59 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 58 60 59 61 # uncheck self.chkOverwrite -
src/sas/qtgui/Utilities/GuiUtils.py
r04a884a r10786bc2 30 30 from sas.qtgui.Plotting.Plottables import Plottable 31 31 from sas.sascalc.dataloader.data_info import Sample, Source, Vector 32 from sas.sascalc.dataloader.data_info import Detector, Process, TransmissionSpectrum 33 from sas.sascalc.dataloader.data_info import Aperture, Collimation 32 34 from sas.qtgui.Plotting.Plottables import View 33 35 from sas.qtgui.Plotting.Plottables import PlottableTheory1D … … 1181 1183 if isinstance(o, (Sample, Source, Vector, FResult)): 1182 1184 return add_type(o.__dict__, type(o)) 1185 # detector 1186 if isinstance(o, (Detector, Process, TransmissionSpectrum, Aperture, Collimation)): 1187 return add_type(o.__dict__, type(o)) 1188 1183 1189 if isinstance(o, (Plottable, View)): 1184 1190 return add_type(o.__dict__, type(o)) … … 1220 1226 Sample, Source, Vector, 1221 1227 Plottable, Data1D, Data2D, PlottableTheory1D, PlottableFit1D, Text, Chisq, View, 1228 Detector, Process, TransmissionSpectrum, Collimation, Aperture, 1222 1229 DataState, np.ndarray, FResult, FitData1D, FitData2D, SasviewModel] 1223 1230 … … 1252 1259 1253 1260 # "simple" types 1254 if cls in (Sample, Source, Vector, FResult, FitData1D, FitData2D, SasviewModel): 1261 if cls in (Sample, Source, Vector, FResult, FitData1D, FitData2D, 1262 SasviewModel, Detector, Process, TransmissionSpectrum, 1263 Collimation, Aperture): 1255 1264 return simple_type(cls, data, level) 1256 1265 if issubclass(cls, Plottable) or (cls == View): -
src/sas/qtgui/Utilities/ModelEditor.py
rf2e199e r33c0561 15 15 super(ModelEditor, self).__init__(parent) 16 16 self.setupUi(self) 17 # disable the context help icon 18 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 17 19 18 20 self.is_python = is_python -
src/sas/qtgui/Utilities/PluginManager.py
raed0532 r33c0561 3 3 from shutil import copyfile 4 4 5 from PyQt5 import QtWidgets 5 from PyQt5 import QtWidgets, QtCore 6 6 7 7 from sas.sascalc.fit import models … … 21 21 super(PluginManager, self).__init__(parent._parent) 22 22 self.setupUi(self) 23 24 # disable the context help icon 25 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 23 26 24 27 self.parent = parent -
src/sas/qtgui/Utilities/ReportDialog.py
r859d960 r33c0561 6 6 from xhtml2pdf import pisa 7 7 8 from PyQt5 import QtWidgets 8 from PyQt5 import QtWidgets, QtCore 9 9 from PyQt5 import QtPrintSupport 10 10 … … 23 23 super(ReportDialog, self).__init__(parent._parent) 24 24 self.setupUi(self) 25 # disable the context help icon 26 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 25 27 26 28 assert isinstance(report_list, list) -
src/sas/qtgui/Utilities/TabbedModelEditor.py
r59b925c1 r33c0561 6 6 import traceback 7 7 8 from PyQt5 import QtWidgets 8 from PyQt5 import QtWidgets, QtCore 9 9 10 10 from sas.sascalc.fit import models … … 28 28 29 29 self.setupUi(self) 30 31 # disable the context help icon 32 self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 30 33 31 34 # globals
Note: See TracChangeset
for help on using the changeset viewer.