Ignore:
Timestamp:
Feb 2, 2009 11:51:27 AM (16 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:
2cf2b87
Parents:
00d083c
Message:

add a new module containing common classes that I used often:
sans.guiframe.utils

remove event slicer and add it in sans.guicoom.events,
modified slicer for those events

File:
1 edited

Legend:

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

    rffd23b5 r0d9dae8  
    1212import wx 
    1313import sys 
     14import pylab 
     15 
    1416import danse.common.plottools 
    1517from danse.common.plottools.PlotPanel import PlotPanel 
    1618from danse.common.plottools.plottables import Graph,Data1D 
    1719from sans.guicomm.events import EVT_NEW_PLOT 
    18 from sans.guicomm.events import StatusEvent ,NewPlotEvent 
    19  
    20  
    21 from SlicerParameters import SlicerEvent 
     20from sans.guicomm.events import StatusEvent ,NewPlotEvent,SlicerEvent 
     21from sans.guiframe.utils import PanelMenu 
     22 
    2223from binder import BindArtist 
    23 (InternalEvent, EVT_INTERNAL)   = wx.lib.newevent.NewEvent() 
    24 #from SlicerParameters import SlicerEvent 
    25 #(InternalEvent, EVT_INTERNAL)   = wx.lib.newevent.NewEvent() 
     24 
     25 
    2626DEFAULT_QMAX = 0.05 
    27  
    2827DEFAULT_QSTEP = 0.001 
    2928DEFAULT_BEAM = 0.005 
    3029BIN_WIDTH =1 
    31 import pylab 
    32  
    33 class PanelMenu(wx.Menu): 
    34     plots = None 
    35     graph = None 
    36      
    37     def set_plots(self, plots): 
    38         self.plots = plots 
    39      
    40     def set_graph(self, graph): 
    41         self.graph = graph 
     30 
     31 
    4232class ModelPanel1D(PlotPanel): 
    4333    """ 
Note: See TracChangeset for help on using the changeset viewer.