Changeset 75b40ce in sasview for guiframe


Ignore:
Timestamp:
Jul 18, 2008 10:17:26 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
202f93a
Parents:
df58d26f
Message:

Modification to update checking method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r4102709 r75b40ce  
    236236         
    237237        self.Fit() 
     238         
     239        #self._check_update(None) 
    238240              
    239241    def _setup_layout(self): 
     
    630632                update_available = False 
    631633                for i in range(len(toks)): 
    632                     if int(toks[i])>int(toks_current[i]): 
    633                         update_available = True 
     634                    if len(toks[i].strip())>0: 
     635                        if int(toks[i].strip())>int(toks_current[i]): 
     636                            update_available = True 
    634637                if update_available: 
    635638                    #print "Version %s is available" % line.rstrip().lstrip() 
     
    639642                        webbrowser.open(config.__download_page__) 
    640643                else: 
    641                     self.SetStatusText("You have the latest version of %s" % config.__appname__) 
    642                     #print "Server version = %s"  % line.rstrip().lstrip() 
     644                    if event != None: 
     645                        self.SetStatusText("You have the latest version of %s" % config.__appname__) 
    643646        except: 
    644             self.SetStatusText("You have the latest version of %s" % config.__appname__) 
     647            if event != None: 
     648                self.SetStatusText("You have the latest version of %s" % config.__appname__) 
    645649             
    646650             
Note: See TracChangeset for help on using the changeset viewer.