Changeset 32673ac in sasview


Ignore:
Timestamp:
Jan 21, 2009 6:42:54 PM (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:
54cc36a
Parents:
2eb40c5
Message:

working on the view2D button

Location:
sansview/perspectives/fitting
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage1D.py

    r3dcd7b5 r32673ac  
    185185        self.qmin= 0.001 
    186186        self.qmax= 0.1 
    187         """ 
    188         bs = wx.BoxSizer(wx.VERTICAL) 
    189         bs.Add(self.scroll, 1, wx.EXPAND) 
    190         self.SetSizer(bs) 
    191         self.scroll.SetSizer(self.vbox)         
    192         self.scroll.SetScrollbars(20,20,55,40) 
    193         #width,height = self.GetSize() 
    194          """ 
     187        
    195188        self.vbox.Layout() 
    196189        self.vbox.Fit(self)  
  • sansview/perspectives/fitting/fitting.py

    rb2c6d23 r32673ac  
    77from danse.common.plottools.PlotPanel import PlotPanel 
    88from sans.guicomm.events import NewPlotEvent, StatusEvent   
    9 from sans.guicomm.events import EVT_SLICER_PARS 
     9from sans.guicomm.events import EVT_SLICER_PANEL 
    1010 
    1111from sans.fit.AbstractFitEngine import Model,Data,FitData1D,FitData2D 
     
    130130        #index number to create random model name 
    131131        self.index_model = 0 
    132         self.parent.Bind(EVT_SLICER_PARS, self._on_slicer_event) 
     132        self.parent.Bind(EVT_SLICER_PANEL, self._on_slicer_event) 
    133133        #create the fitting panel 
    134134        #return [self.fit_panel] 
     135         
    135136        self.mypanels.append(self.fit_panel) 
    136137        return self.mypanels 
    137138    def _on_slicer_event(self, event): 
    138         print "slicer event ", event.panel 
     139        print "fitting:slicer event ", event.panel 
    139140        new_panel = event.panel 
    140141        # Set group ID if available 
    141142        event_id = self.parent.popup_panel(new_panel) 
    142         #self.menu.Append(event_id, new_panel.window_caption,  
    143         #                 "Show %s plot panel" % new_panel.window_caption) 
     143        self.menu1.Append(event_id, new_panel.window_caption,  
     144                         "Show %s plot panel" % new_panel.window_caption) 
    144145        # Set UID to allow us to reference the panel later 
    145146        new_panel.uid = event_id 
    146         
     147        new_panel 
    147148        self.mypanels.append(new_panel)  
    148149        return         
  • sansview/perspectives/fitting/modelpage.py

    r2eb40c5 r32673ac  
    208208            self.enable2D=True 
    209209            self._draw_model() 
     210        else: 
     211            self.manager.menu1.Append(event_id, new_panel.window_caption,  
     212                         "Show %s plot panel" % new_panel.window_caption) 
    210213             
    211214    def populate_box(self, dict): 
     
    441444                                enable2D=self.enable2D) 
    442445    
    443              
    444              
     446         
    445447               
Note: See TracChangeset for help on using the changeset viewer.