Changeset b025572 in sasview


Ignore:
Timestamp:
Dec 20, 2011 6:57:30 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:
6e01f06
Parents:
7c8d3093
Message:

cleanup the _pylab_helpers.Gcf.figs for resolution panel on close: that caused C++ error on sansview exit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/resolution_calculator_panel.py

    r5f3164c rb025572  
    706706        if self.image != None: 
    707707            self.image.clf() 
    708             #self.image.draw() 
     708            # reset image 
     709            self.image = None 
    709710        # Close panel 
    710         self.parent.Close() 
    711         # reset image 
    712         self.image = None 
     711        self.parent.OnClose(None) 
     712         
    713713     
    714714    def on_compute(self, event = None):   
     
    14031403        self.Centre() 
    14041404        self.Show(True) 
     1405        wx.EVT_CLOSE(self, self.OnClose) 
     1406     
     1407    def OnClose(self, event):   
     1408        """ 
     1409        On close event 
     1410        """ 
     1411        _pylab_helpers.Gcf.figs = {} 
     1412        self.Destroy()   
     1413 
    14051414         
    14061415if __name__ == "__main__":  
Note: See TracChangeset for help on using the changeset viewer.