Changeset 71361f0 in sasview for src/sas/qtgui/GuiManager.py
- Timestamp:
- Apr 8, 2017 5:03:31 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/GuiManager.py
r9c391946 r71361f0 196 196 def updatePerspective(self, data): 197 197 """ 198 Update perspective with data sent. 198 199 """ 199 200 assert isinstance(data, list) … … 203 204 msg = "No perspective is currently active." 204 205 logging.info(msg) 205 206 206 207 207 def communicator(self): … … 237 237 def updateStatusBar(self, text): 238 238 """ 239 """240 #self._workspace.statusbar.showMessage(text)239 Set the status bar text 240 """ 241 241 self.statusLabel.setText(text) 242 242 … … 287 287 c = Connection(LocalConfig.__update_URL__, LocalConfig.UPDATE_TIMEOUT) 288 288 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) 298 299 299 300 def processVersion(self, version_info): … … 311 312 msg = "Could not connect to the application server." 312 313 msg += " Please try again later." 313 #self.SetStatusText(msg)314 314 self.communicate.statusBarUpdateSignal.emit(msg) 315 315
Note: See TracChangeset
for help on using the changeset viewer.