Changeset 71361f0 in sasview for src/sas/qtgui/GuiManager.py


Ignore:
Timestamp:
Apr 8, 2017 5:03:31 PM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
1970780
Parents:
9c391946
Message:

tweaked Data Explorer UI, added prototype/test silx 2D plotting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/GuiManager.py

    r9c391946 r71361f0  
    196196    def updatePerspective(self, data): 
    197197        """ 
     198        Update perspective with data sent. 
    198199        """ 
    199200        assert isinstance(data, list) 
     
    203204            msg = "No perspective is currently active." 
    204205            logging.info(msg) 
    205  
    206206 
    207207    def communicator(self): 
     
    237237    def updateStatusBar(self, text): 
    238238        """ 
    239         """ 
    240         #self._workspace.statusbar.showMessage(text) 
     239        Set the status bar text 
     240        """ 
    241241        self.statusLabel.setText(text) 
    242242 
     
    287287        c = Connection(LocalConfig.__update_URL__, LocalConfig.UPDATE_TIMEOUT) 
    288288        response = c.connect() 
    289         if response is not None: 
    290             try: 
    291                 content = response.read().strip() 
    292                 logging.info("Connected to www.sasview.org. Latest version: %s" 
    293                              % (content)) 
    294                 version_info = json.loads(content) 
    295             except ValueError, ex: 
    296                 logging.info("Failed to connect to www.sasview.org:", ex) 
    297         self.processVersion(version_info) 
     289        if response is None: 
     290            return 
     291        try: 
     292            content = response.read().strip() 
     293            logging.info("Connected to www.sasview.org. Latest version: %s" 
     294                            % (content)) 
     295            version_info = json.loads(content) 
     296            self.processVersion(version_info) 
     297        except ValueError, ex: 
     298            logging.info("Failed to connect to www.sasview.org:", ex) 
    298299 
    299300    def processVersion(self, version_info): 
     
    311312                msg = "Could not connect to the application server." 
    312313                msg += " Please try again later." 
    313                 #self.SetStatusText(msg) 
    314314                self.communicate.statusBarUpdateSignal.emit(msg) 
    315315 
Note: See TracChangeset for help on using the changeset viewer.