Ignore:
Timestamp:
Jun 19, 2011 1:47:38 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:
735c179
Parents:
71fa9bb9
Message:

to catch evnt(resize) object

File:
1 edited

Legend:

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

    r71fa9bb9 rad9e5e1  
    140140        On response of the resize of a panel, set axes_visiable False 
    141141        """ 
    142         # Ready for another event 
    143         # Do not remove this Skip. Otherwise it will get runtime error. 
    144         event.Skip()  
     142        print "evet", event.GetEventObject() 
    145143        print "self.x_size,self.GetSize()",self.x_size, self.GetSize() 
    146144        # It was found that wx >= 2.9.3 sends an event even if no size changed. 
     
    153151                return 
    154152        self.x_size = self.GetSize() 
    155          
     153        # Ready for another event 
     154        # Do not remove this Skip. Otherwise it will get runtime error. 
     155        event.Skip()  
    156156        # set the resizing flag 
    157157        self.resizing = True 
Note: See TracChangeset for help on using the changeset viewer.