Ignore:
Timestamp:
Jun 14, 2015 2:38:22 PM (9 years ago)
Author:
butler
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:
f3dc56c
Parents:
4faed25
Message:

Added Polarized beam help button (next to mag angle definition button)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/fitting/basepage.py

    r7801df8 r7116dffd  
    28892889            wx.MessageBox(msg, info) 
    28902890 
    2891     def _on_mag_help(self, event): 
     2891    def _on_mag_angle_help(self, event): 
    28922892        """ 
    28932893        Bring up Magnetic Angle definition bmp image whenever the ? button 
     
    29082908        _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 
    29092909                                          "Magnetic Angle Defintions") 
     2910 
     2911    def _on_mag_help(self, event): 
     2912        """ 
     2913        Bring up Magnetic Angle definition bmp image whenever the ? button 
     2914        is clicked. Calls DocumentationWindow with the path of the location 
     2915        within the documentation tree (after /doc/ ....". When using old 
     2916        versions of Wx (i.e. before 2.9 and therefore not part of release 
     2917        versions distributed via installer) it brings up an image viewer 
     2918        box which allows the user to click through the rest of the images in 
     2919        the directory.  Not ideal but probably better than alternative which 
     2920        would bring up the entire discussion of how magnetic models work? 
     2921        Specially since it is not likely to be accessed.  The normal release 
     2922        versions bring up the normal image box. 
     2923 
     2924        :param evt: Triggers on clicking ? in Magnetic Angles? box 
     2925        """ 
     2926 
     2927        _TreeLocation = "user/perspectives/fitting/mag_help.html" 
     2928        _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 
     2929                                          "Polarized Beam/Magnetc Help") 
    29102930 
    29112931    def _on_mag_on(self, event): 
Note: See TracChangeset for help on using the changeset viewer.