Changeset dd66fbd in sasview


Ignore:
Timestamp:
Feb 16, 2009 6:53:18 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:
f69bc394
Parents:
8f274b11
Message:

status bar changed—-removed error from data remove

Location:
guiframe
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r0bd2cd8 rdd66fbd  
    264264        """ 
    265265        # Status bar 
    266         self.sb = self.CreateStatusBar() 
    267         self.SetStatusText("") 
     266        from statusbar import MyStatusBar 
     267        self.sb = MyStatusBar(self,wx.ID_ANY) 
     268        self.SetStatusBar(self.sb) 
    268269 
    269270        # Add panel 
     
    615616            Display status message 
    616617        """ 
    617         self.SetStatusText(str(evt.status)) 
     618        self.sb.clear_gauge( msg="") 
     619        mythread=None 
     620        mytype= None 
     621        if hasattr(evt, "curr_thread"): 
     622            mythread= evt.curr_thread 
     623        if hasattr(evt, "type"): 
     624            mytype= evt.type 
     625        self.sb.set_status( type=mytype,msg=str(evt.status),thread=mythread) 
     626        
    618627 
    619628         
  • guiframe/local_perspectives/plotting/Plotter1D.py

    r9a585d0 rdd66fbd  
    226226                #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 
    227227                wx.EVT_MENU(self, id, self._on_add_errors) 
    228             elif self.plots[self.graph.selected_plottable].__class__.__name__=="Data1D": 
    229                 id = wx.NewId() 
    230                 slicerpop.Append(id, '&Remove errors From data') 
    231                 #print "panel scale before  ",self.xLabel, self.yLabel 
    232                 #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 
    233                 wx.EVT_MENU(self, id, self._on_remove_errors) 
     228                """ 
     229                elif self.plots[self.graph.selected_plottable].__class__.__name__=="Data1D": 
     230                    id = wx.NewId() 
     231                    slicerpop.Append(id, '&Remove errors From data') 
     232                    #print "panel scale before  ",self.xLabel, self.yLabel 
     233                    #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 
     234                    wx.EVT_MENU(self, id, self._on_remove_errors) 
     235                """ 
    234236            else: 
    235237                id = wx.NewId() 
     
    285287            self.graph.delete_plottable(self.plots[self.graph.selected_plottable]) 
    286288             
    287             self.graph.add_plottable(new_plot,color) 
     289            self.graph.add(new_plot,color) 
    288290            # transforming the view of the new data into the same of the previous data 
    289291            self._onEVT_FUNC_PROPERTY() 
     
    332334            new_plot.yaxis(label, unit) 
    333335            #print "panel scale ",self.xLabel, self.yLabel 
    334             color=self.graph.plottables[self.plots[self.graph.selected_plottable]] 
     336            #color=self.graph.plottables[self.plots[self.graph.selected_plottable]] 
    335337            self.graph.delete_plottable(self.plots[self.graph.selected_plottable]) 
    336             self.graph.add_plottable(new_plot, color) 
    337             #self.graph.add(new_plot) 
     338            #self.graph.add_plottable(new_plot, color) 
     339            self.graph.add(new_plot) 
    338340            # transforming the view of the new data into the same of the previous data 
    339341            self._onEVT_FUNC_PROPERTY() 
  • guiframe/model_thread.py

    rca88b2e rdd66fbd  
    125125         
    126126        wx.PostEvent(self.parent, StatusEvent(status="Plot \ 
    127         updating ... %g sec" % time)) 
     127        #updating ... %g sec" % time,curr_thread=self,type="update")) 
     128         
    128129         
    129130    def compute(self): 
     
    135136        center_x=0 
    136137        center_y=0 
    137         
     138         
    138139        self.starttime = time.time() 
     140        print "model_thread" 
    139141        wx.PostEvent(self.parent, StatusEvent(status=\ 
    140                        "Start Drawing model %g " % self.starttime)) 
     142                    "Start Drawing model %g " % (self.starttime))) 
    141143        lx = len(self.x) 
    142144        
Note: See TracChangeset for help on using the changeset viewer.