Changeset 33fdb34 in sasview for sansguiframe/src


Ignore:
Timestamp:
Sep 14, 2011 6:17:52 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
55d2f7e
Parents:
bcd3f73
Message:

fixed for mac check menuitems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    rbcd3f73 r33fdb34  
    15791579            # Make sure the Checkmenuitem checked: Need this for-loop \ 
    15801580            # because the check menu is not responding on floating panel  
    1581             for item in self._plotting_plugin.menu.GetMenuItems(): 
    1582                 item.Check(True) 
     1581            try: 
     1582                for item in self._plotting_plugin.menu.GetMenuItems(): 
     1583                    item.Check(True) 
     1584            except: 
     1585                # MAC is not using checkmenuitem 
     1586                pass 
    15831587            msg = "All graph panels are shown." 
    15841588        wx.PostEvent(self, StatusEvent(status=msg)) 
     
    16031607            # Make sure the Checkmenuitem unchecked: Need this for-loop  
    16041608            # because the check menu is not responding on floating panel  
    1605             for item in self._plotting_plugin.menu.GetMenuItems(): 
    1606                 item.Check(False) 
     1609            try: 
     1610                for item in self._plotting_plugin.menu.GetMenuItems(): 
     1611                    item.Check(False) 
     1612            except: 
     1613                # MAC is not using checkmenuitem 
     1614                pass 
    16071615            msg = "All graph panels are hidden." 
    16081616        wx.PostEvent(self, StatusEvent(status=msg)) 
Note: See TracChangeset for help on using the changeset viewer.