Changeset 0f815f9 in sasview


Ignore:
Timestamp:
Jun 22, 2011 1:35:11 PM (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:
09a9660
Parents:
889e9f8
Message:

try wx2.9 oriented(MAC)

Location:
guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

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

    rf6aee42 r0f815f9  
    142142        # It was found that wx >= 2.9.3 sends an event even if no size changed. 
    143143        # So manually recode the size (=x_size) and compare here. 
    144         """ 
     144 
     145        if event != None:  
     146                event.Skip()  
    145147        if self.x_size != None: 
    146148            if self.x_size == self.GetSize(): 
     
    149151                return 
    150152        self.x_size = self.GetSize() 
    151         """ 
     153 
    152154        # Ready for another event 
    153155        # Do not remove this Skip. Otherwise it will get runtime error on wx>=2.9. 
  • guiframe/local_perspectives/plotting/plotting.py

    r4520830 r0f815f9  
    159159        self.menu.AppendCheckItem(event_id, new_panel.window_caption,  
    160160                         "Show %s plot panel" % new_panel.window_caption) 
    161         self.menu.Check(event_id, IS_WIN) 
     161        self.menu.Check(event_id, True)#IS_WIN) 
    162162        wx.EVT_MENU(self.parent, event_id, self._on_check_menu) 
    163163 
     
    308308        if self.menu.IsChecked(event_id): 
    309309            self.parent.on_view(event) 
    310             self.menu.Check(event_id, IS_WIN) 
     310            self.menu.Check(event_id, True)#IS_WIN) 
    311311        else: 
    312312            self.parent.hide_panel(event_id) 
Note: See TracChangeset for help on using the changeset viewer.