Changeset 1ce365f8 in sasview


Ignore:
Timestamp:
Feb 18, 2009 5:13:06 PM (15 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:
b5c537f
Parents:
d466625
Message:

print preview added back

Location:
guiframe/local_perspectives/plotting
Files:
4 edited

Legend:

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

    r14d3495 r1ce365f8  
    5252         
    5353        # Bind to slice parameter events 
    54         self.base.parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
     54        self.base.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
    5555         
    5656         
    5757 
    5858    def _onEVT_SLICER_PARS(self, event): 
    59         wx.PostEvent(self.base.parent, StatusEvent(status="AnnulusSlicer._onEVT_SLICER_PARS")) 
     59        wx.PostEvent(self.base, StatusEvent(status="AnnulusSlicer._onEVT_SLICER_PARS")) 
    6060        event.Skip() 
    6161        if event.type == self.__class__.__name__: 
     
    123123                   math.fabs(self.outer_circle.get_radius())) 
    124124        print "rmin, rmax", rmin, rmax 
    125         
    126         sect = SectorPhi(r_min=rmin , r_max= rmax, phi_min=0, phi_max=2*math.pi) 
    127         if nbins!=None: 
    128             sect.nbins = nbins 
     125        if nbins==None: 
     126            nbins = 20 
     127        sect = SectorPhi(r_min=rmin , r_max= rmax, 
     128                          phi_min=0, phi_max=2*math.pi , nbins=nbins) 
     129         
    129130         
    130131        sector = sect(self.base.data2D) 
  • guiframe/local_perspectives/plotting/Plotter2D.py

    r9a585d0 r1ce365f8  
    190190        wx.EVT_MENU(self, id, self.onPrint) 
    191191         
     192        id = wx.NewId() 
     193        slicerpop.Append(id,'&Image Preview', 'image preview for print') 
     194        wx.EVT_MENU(self, id, self.onPrinterPreview) 
     195         
    192196        slicerpop.AppendSeparator() 
    193197        item_list = self.parent.get_context_menu(self.graph) 
     
    248252        wx.EVT_MENU(self, id, self.onPrinterSetup) 
    249253         
    250         id = wx.NewId() 
    251         slicerpop.Append(id,'&Printer Preview', 'Set image size') 
    252         wx.EVT_MENU(self, id, self.onPrinterPreview) 
     254        
    253255        """ 
    254256        id = wx.NewId() 
  • guiframe/local_perspectives/plotting/SectorSlicer.py

    r31e3298 r1ce365f8  
    6363         
    6464        # Bind to slice parameter events 
    65         self.base.parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
    66  
     65        #self.base.parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
     66        self.base.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
    6767 
    6868    def _onEVT_SLICER_PARS(self, event): 
    69         wx.PostEvent(self.base.parent, StatusEvent(status="SectorSlicer._onEVT_SLICER_PARS")) 
     69        #wx.PostEvent(self.base.parent, StatusEvent(status="SectorSlicer._onEVT_SLICER_PARS")) 
     70        wx.PostEvent(self.base, StatusEvent(status="SectorSlicer._onEVT_SLICER_PARS")) 
    7071        event.Skip() 
    7172        if event.type == self.__class__.__name__: 
     
    162163        #print "sector Q angles=",phimin*180/math.pi,phimax*180/math.pi,self.main_line.theta*180/math.pi 
    163164        #phi must be 0 to 2pi with cut-off line sts on the left. 
    164         sect = SectorQ(r_min=0.0, r_max= radius , phi_min=phimin+math.pi, phi_max=phimax+math.pi) 
     165        if nbins==None: 
     166            nbins = 20 
     167        sect = SectorQ(r_min=0.0, r_max= radius , phi_min=phimin+math.pi, phi_max=phimax+math.pi, nbins=nbins) 
    165168        #sect = SectorQ(r_min=-1*radius , r_max= radius , phi_min=phimin, phi_max=phimax) 
    166         if nbins!=None: 
    167             sect.nbins = nbins 
     169         
    168170         
    169171        sector = sect(self.base.data2D) 
  • guiframe/local_perspectives/plotting/boxSum.py

    rea290ee r1ce365f8  
    7777        self.panel_name= name 
    7878    def _onEVT_SLICER_PARS(self, event): 
    79         #printEVT("AnnulusSlicer._onEVT_SLICER_PARS") 
     79        wx.PostEvent(self.base, StatusEvent(status="Boxsum._onEVT_SLICER_PARS")) 
    8080        event.Skip() 
    8181        if event.type == self.__class__.__name__: 
     
    108108         
    109109        #self.base.connect.disconnect() 
    110         self.base.parent.Unbind(SlicerParameters.EVT_SLICER_PARS) 
     110        #self.base.parent.Unbind(SlicerParameters.EVT_SLICER_PARS) 
    111111         
    112112    def update(self): 
Note: See TracChangeset for help on using the changeset viewer.