Changeset 700f9b4 in sasview


Ignore:
Timestamp:
Feb 23, 2009 5:24:24 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:
2a8fac1
Parents:
353041d
Message:

small change on status bar

Location:
guiframe
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r353041d r700f9b4  
    225225         
    226226        # History panel 
    227         self.histPanel     = history.HistoryPanel(self, style=wx.RAISED_BORDER) 
     227        #self.histPanel     = history.HistoryPanel(self, style=wx.RAISED_BORDER) 
    228228        # self.build_gui() 
    229229        
     
    369369        self.panels["default"] = self.defaultPanel 
    370370         # History panel 
    371         self.panels["historyPanel"] = self.histPanel   
     371        #self.panels["historyPanel"] = self.histPanel   
    372372         
    373373        self._mgr.AddPane(self.defaultPanel, wx.aui.AuiPaneInfo(). 
     
    378378                              MinSize(wx.Size(self._window_width, self._window_height)). 
    379379                              Show()) 
     380        """ 
    380381        self._mgr.AddPane(self.histPanel, wx.aui.AuiPaneInfo(). 
    381382                          Name("historyPanel").Caption("History"). 
     
    392393                          BestSize(wx.Size(500,600)). 
    393394                          MinSize(wx.Size(200,150))) 
     395        """ 
    394396 
    395397        # Add the panels to the AUI manager 
     
    650652                 
    651653            self._mgr.Update() 
     654    """ 
    652655    def _onHistoryPanel(self, event): 
    653656        print "on history" 
     
    656659        self._mgr.Update() 
    657660        return 
    658          
     661    """    
    659662    def _on_open(self, event): 
    660663    
    661664        from data_loader import plot_data 
    662665        path = self.choose_file() 
    663              
     666        if path ==None: 
     667            return 
    664668        if path and os.path.isfile(path): 
    665669            plot_data(self, path) 
  • guiframe/model_thread.py

    r858f2ae5 r700f9b4  
    158158                        value = self.model.runXY([self.x[i_x]-center_x, self.y[i_y]-center_y]) 
    159159                        output[i_x] [i_y]=value    
     160                        
    160161                except: 
    161162                     wx.PostEvent(self.parent, StatusEvent(status=\ 
    162163                       "Error computing %s at [%g,%g]" %(self.model.name, self.x[i_x],self.y[i_y]))) 
    163             
     164                     pass 
     165        print "model thread ouput",output        
    164166        elapsed = time.time()-self.starttime 
    165167        self.complete( 
  • guiframe/statusbar.py

    r858f2ae5 r700f9b4  
    2929        """  
    3030        self.count +=1 
    31         if self.count ==20: 
     31        if self.count ==30: 
    3232            self.timer_stop.Stop()  
    3333            self.gauge.Hide() 
     34            self.SetStatusText( "", 0) 
    3435            self.count=0 
    3536    def OnTimer(self, evt):  
     
    4849            while(self.thread.isrunning()): 
    4950                self.progress += 1 
    50                  
    51                 # Update the Rqnge if it has changed  
    52                 #if self.range >= 0 and self.range != self.gauge.GetRange():  
    53                 #    self.gauge.SetRange(self.range)  
    54        
    5551                # Update the progress value if it is less than the range  
    5652                if self.progress < self.gauge.GetRange()-20:  
     
    7874        else: 
    7975            self.thread= thread 
    80             #if self.thread !=None: 
    8176            self.gauge.Show(True) 
    8277            if type.lower()=="start": 
     
    9590                self.SetStatusText( str(msg), 0) 
    9691                self.gauge.Pulse() 
    97                 print "in progress" 
     92                #print "in progress" 
    9893                 
    9994            if  type.lower()=="update": 
     
    10499                if self.progress < self.gauge.GetRange()-20: 
    105100                    self.gauge.SetValue(int(self.progress))  
     101                     
    106102            if type.lower()=="stop": 
    107                 print "it is complete" 
    108103                self.gauge.Show(True) 
    109104                self.timer.Stop() 
Note: See TracChangeset for help on using the changeset viewer.