- Timestamp:
- Jun 22, 2017 8:11:45 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:
- 2a8bd705
- Parents:
- b67bfa7
- Location:
- src/sas/qtgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FitPage.py
r6964d44 r6ff2eb3 46 46 # Fit options - tab #2 47 47 self.fit_options = {} 48 # Weight options - tab #249 #self.weighting_options = {}50 48 # Smearing options - tab #3 49 # Should this be just part of self.fit_options? 51 50 self.smearing_options = {} 51 52 # Polydispersity - tab #4 53 #self.poly 54 55 # Magnetism - tab #5 56 #self.magnetism 57 58 # Algorithm 59 self.algorithm = None 60 self.algorithm_options = {} 52 61 53 62 def save(self): -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r72f4834 r6ff2eb3 197 197 self.lblFilename.setText("") 198 198 199 # Magnetic angles explained in one picture 200 self.magneticAnglesWidget = QtGui.QWidget() 201 labl = QtGui.QLabel(self.magneticAnglesWidget) 202 pixmap = QtGui.QPixmap(GuiUtils.IMAGES_DIRECTORY_LOCATION + '/M_angles_pic.bmp') 203 labl.setPixmap(pixmap) 204 self.magneticAnglesWidget.setFixedSize(pixmap.width(), pixmap.height()) 205 199 206 def initializeModels(self): 200 207 """ … … 274 281 self.chk2DView.setEnabled(False) 275 282 self.chk2DView.setVisible(False) 276 self.chkMagnetism.setEnabled( True)283 self.chkMagnetism.setEnabled(self.is2D) 277 284 # Similarly on other tabs 278 285 self.options_widget.setEnablementOnDataLoad() … … 359 366 self.cmdPlot.clicked.connect(self.onPlot) 360 367 self.cmdHelp.clicked.connect(self.onHelp) 368 self.cmdMagneticDisplay.clicked.connect(self.onDisplayMagneticAngles) 361 369 362 370 # Respond to change in parameters from the UI … … 541 549 self.helpView.show() 542 550 551 def onDisplayMagneticAngles(self): 552 """ 553 Display a simple image showing direction of magnetic angles 554 """ 555 self.magneticAnglesWidget.show() 556 543 557 def onFit(self): 544 558 """ … … 1544 1558 fp.kernel_module = self.kernel_module 1545 1559 1560 # Algorithm options 1561 # fp.algorithm = self.parent.fit_options.selected_id 1562 1546 1563 # Options tab 1547 1564 fp.fit_options[fp.MIN_RANGE] = self.q_range_min -
src/sas/qtgui/Utilities/GuiUtils.py
rb0c5e8c r6ff2eb3 97 97 ## TODO: CHANGE FOR SHIPPED PATH IN RELEASE 98 98 HELP_DIRECTORY_LOCATION = "docs/sphinx-docs/build/html" 99 IMAGES_DIRECTORY_LOCATION = HELP_DIRECTORY_LOCATION + "/_images" 99 100 100 101 # GUI always starts from the App folder
Note: See TracChangeset
for help on using the changeset viewer.