Changeset d264f0da in sasview for guiframe


Ignore:
Timestamp:
Apr 27, 2011 11:49:57 AM (14 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:
61ffd1e
Parents:
908b817
Message:

graph menu hide/show: improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/plotting.py

    r168a845 rd264f0da  
    290290        Check mark on menu 
    291291        """ 
    292         event.Skip() 
     292        #event.Skip() 
    293293        event_id = event.GetId() 
    294          
    295         #self.menu.Enable(event_id, False) 
    296         self.parent._on_view(event) 
    297         if not self.menu.IsChecked(event_id): 
     294 
     295        if self.menu.IsChecked(event_id): 
     296            self.parent._on_view(event) 
    298297            self.menu.Check(event_id, True) 
    299  
     298        else: 
     299            self.parent.hide_panel(event_id) 
     300            self.menu.Check(event_id, False) 
    300301         
    301302    def _on_close_panel(self, event): 
Note: See TracChangeset for help on using the changeset viewer.