Changeset f82ab8c in sasview for src/sas/qtgui/GuiUtils.py
- Timestamp:
- Jun 29, 2016 8:04:43 AM (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:
- 481ff26
- Parents:
- 9e426c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/GuiUtils.py
r9e426c1 rf82ab8c 9 9 import warnings 10 10 import re 11 import webbrowser 12 import urlparse 13 11 14 warnings.simplefilter("ignore") 12 15 import logging … … 25 28 #from sas.sasgui.guiframe.events import StatusEvent 26 29 #from sas.sasgui.guiframe.events import NewPlotEvent 30 27 31 from sas.sasgui.guiframe.dataFitting import Data1D 28 32 from sas.sasgui.guiframe.dataFitting import Data2D … … 200 204 201 205 # Update Main window status bar with "str" 206 # Old "StatusEvent" 202 207 statusBarUpdateSignal = QtCore.pyqtSignal(str) 203 208 … … 207 212 # New data in current perspective 208 213 updateModelFromPerspectiveSignal = QtCore.pyqtSignal(QtGui.QStandardItem) 214 215 # New plot requested from the GUI manager 216 # Old "NewPlotEvent" 217 plotRequestedSignal = QtCore.pyqtSignal(str) 218 209 219 210 220 def updateModelItem(item, update_data, name=""): … … 310 320 return info_item 311 321 322 def openLink(url): 323 """ 324 Open a URL in an external browser. 325 Check the URL first, though. 326 """ 327 parsed_url = urlparse.urlparse(url) 328 if parsed_url.scheme: 329 webbrowser.open(url) 330 else: 331 msg = "Attempt at opening an invalid URL" 332 raise AttributeError, msg
Note: See TracChangeset
for help on using the changeset viewer.