Changeset 450ae05 in sasview


Ignore:
Timestamp:
May 11, 2011 12:32:07 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
2b693a2
Parents:
b92cbf61
Message:

remove event to delete fit tab when removing data

Location:
guiframe
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/events.py

    ra07e72f r450ae05  
    1616#slicer event 
    1717(SlicerEvent, EVT_SLICER)   = wx.lib.newevent.NewEvent() 
    18 ## event that that destroy a page associate with Data1D removed from the graph 
    19 (RemoveDataEvent, EVT_REMOVE_DATA)   = wx.lib.newevent.NewEvent() 
    2018##event that allow to add more that to the same plot 
    2119(AddManyDataEvent, EVT_ADD_MANY_DATA)   = wx.lib.newevent.NewEvent() 
  • guiframe/local_perspectives/plotting/Plotter1D.py

    rad1e49c r450ae05  
    2626from sans.guiframe.events import NewPlotEvent 
    2727from sans.guiframe.events import SlicerEvent 
    28 from sans.guiframe.events import RemoveDataEvent 
    2928from sans.guiframe.events import PanelOnFocusEvent 
    3029from sans.guiframe.events import EVT_NEW_LOADED_DATA 
     
    180179            self.graph.render(self) 
    181180            self.subplot.figure.canvas.draw_idle()     
    182             event = RemoveDataEvent(data=data) 
    183             wx.PostEvent(self.parent, event) 
    184181            if len(self.graph.plottables) == 0: 
    185182                #onRemove: graph is empty must be the panel must be destroyed 
Note: See TracChangeset for help on using the changeset viewer.