Changeset 4380c03 in sasview for src/sas/perspectives/fitting
- Timestamp:
- Feb 18, 2015 7:49:10 AM (10 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 82221a9e
- Parents:
- 69032d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/basepage.py
r0d9401e r4380c03 2963 2963 def _on_mag_help(self, event): 2964 2964 """ 2965 Magnetic angles help panel 2966 """ 2967 from sas.perspectives.fitting.help_panel import HelpWindow 2968 # Get models help model_function path 2969 #import sas.perspectives.fitting as fitmedia 2970 from sas.models import get_data_path 2971 2972 media = get_data_path(media='media') 2973 path = os.path.join(media, "mag_pic.html") 2974 name = "Polar/Magnetic Angles" 2975 frame = HelpWindow(None, -1, 2976 title=' Help: Polarization/Magnetization Angles', 2977 pageToOpen=path, size=(865, 450)) 2978 try: 2979 frame.splitter.DetachWindow(frame.lpanel) 2980 # Display only the right side one 2981 frame.lpanel.Hide() 2982 frame.Show(True) 2983 except: 2984 frame.Destroy() 2985 msg = 'Display Error\n' 2986 info = "Info" 2987 wx.MessageBox(msg, info) 2988 2965 Bring up Magnetic Angle definition bmp image whenever the ? button 2966 is clicked. Calls DocumentationWindow with the path of the location 2967 within the documentation tree (after /doc/ ....". When using old 2968 versions of Wx When (i.e. before 2.9 and therefore not part of release 2969 versions distributed via installer) it brings up an image viewer 2970 box which allows the user to click through the rest of the images in 2971 the directory. Not ideal but probably better than alternative which 2972 would bring up the entire discussion of how magnetic models work? 2973 Specially since it is not likely to be accessed. The normal release 2974 versions bring up the normal image box. 2975 2976 :param evt: Triggers on clicking ? in Magnetic Angles? box 2977 """ 2978 2979 from sas.guiframe.documentation_window import DocumentationWindow 2980 2981 _TreeLocation = "_images/M_angles_pic.bmp" 2982 _doc_viewer = DocumentationWindow(self, -1, \ 2983 _TreeLocation,"Magnetic Angle Defintions") 2984 2989 2985 def _on_mag_on(self, event): 2990 2986 """ … … 3018 3014 def on_pd_help_clicked(self, event): 3019 3015 """ 3020 Bring up Polydispersit Documentation whenever the ? button is clicked.3016 Bring up Polydispersity Documentation whenever the ? button is clicked. 3021 3017 Calls DocumentationWindow with the path of the location within the 3022 documentation tree (after /doc/ ...." 3018 documentation tree (after /doc/ ....". Note that when using old 3019 versions of Wx (before 2.9) and thus not the release version of 3020 istallers, the help comes up at the top level of the file as 3021 webbrowser does not pass anything past the # to the browser when it is 3022 running "file:///...." 3023 3023 3024 3024 :param evt: Triggers on clicking ? in polydispersity box
Note: See TracChangeset
for help on using the changeset viewer.