Changeset a95260d in sasview
- Timestamp:
- Jul 10, 2016 12:41:19 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:
- 8cb6cd6
- Parents:
- 0cd8612
- Location:
- src/sas/qtgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow.py
r0cd8612 ra95260d 1 import sys2 3 from PyQt4 import QtGui4 5 1 # UNLESS EXEPTIONALLY REQUIRED TRY TO AVOID IMPORTING ANY MODULES HERE 6 2 # ESPECIALLY ANYTHING IN SAS, SASMODELS NAMESPACE 3 from PyQt4 import QtGui 7 4 8 5 # Local UI … … 16 13 def __init__(self, reactor, parent=None): 17 14 super(MainSasViewWindow, self).__init__(parent) 18 15 19 16 # define workspace for dialogs. 20 17 self.workspace = QtGui.QWorkspace(self) … … 28 25 self.guiManager.quitApplication() 29 26 30 27 31 28 def SplashScreen(): 32 29 """ -
src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py
r0cd8612 ra95260d 302 302 variant_item = QtCore.QVariant(high_out_data) 303 303 # This needs to run in the main thread 304 reactor.callFromThread( updateModelItem, self._model_item, variant_item, title)304 reactor.callFromThread(GuiUtils.updateModelItem, self._model_item, variant_item, title) 305 305 306 306 item = QtGui.QStandardItem(str(float('%.5g'% volume_fraction))) -
src/sas/qtgui/Plotter.py
r1042dba ra95260d 1 import sys2 1 from PyQt4 import QtGui 3 2 4 # Replace the qt4agg calls below with qt5 equivalent.3 # TODO: Replace the qt4agg calls below with qt5 equivalent. 5 4 # Requires some code modifications. 6 5 # https://www.boxcontrol.net/embedding-matplotlib-plot-on-pyqt5-gui.html … … 9 8 from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar 10 9 import matplotlib.pyplot as plt 11 12 import random13 10 14 11 class Plotter(QtGui.QDialog): -
src/sas/qtgui/UnitTesting/SasviewLoggerTest.py
r0cd8612 ra95260d 4 4 5 5 from PyQt4.QtGui import * 6 from PyQt4.QtTest import QTest7 6 from PyQt4.QtCore import * 8 7 … … 27 26 28 27 29 def test _stdout(self):28 def testQtHandler(self): 30 29 """ 31 30 Test redirection of all levels of logging
Note: See TracChangeset
for help on using the changeset viewer.