Changeset e4335ae in sasview for src/sas/qtgui/MainWindow
- Timestamp:
- Jul 19, 2018 4:12:03 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- c0de493
- Parents:
- 02e7d3a
- git-author:
- Torin Cooper-Bennun <40573959+tcbennun@…> (07/19/18 04:12:03)
- git-committer:
- Piotr Rozyczko <piotr.rozyczko@…> (07/19/18 04:12:03)
- Location:
- src/sas/qtgui/MainWindow
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
rf0a8f74 re4335ae 13 13 # General SAS imports 14 14 from sas.qtgui.Utilities.ConnectionProxy import ConnectionProxy 15 from sas.qtgui.Utilities.SasviewLogger import XStream15 from sas.qtgui.Utilities.SasviewLogger import setup_qt_logging 16 16 17 17 import sas.qtgui.Utilities.LocalConfig as LocalConfig … … 86 86 87 87 # Fork off logging messages to the Log Window 88 XStream.stdout().messageWritten.connect(self.listWidget.insertPlainText)89 XStream.stderr().messageWritten.connect(self.listWidget.insertPlainText)88 handler = setup_qt_logging() 89 handler.messageWritten.connect(self.appendLog) 90 90 91 91 # Log the start of the session … … 269 269 """ 270 270 self.statusLabel.setText(text) 271 272 def appendLog(self, msg): 273 """Appends a message to the list widget in the Log Explorer. Use this 274 instead of listWidget.insertPlainText() to facilitate auto-scrolling""" 275 self.listWidget.append(msg.strip()) 271 276 272 277 def createGuiData(self, item, p_file=None): -
src/sas/qtgui/MainWindow/MainWindow.py
ra3221b6 re4335ae 10 10 from sas.qtgui.UI import main_resources_rc 11 11 from .UI.MainWindowUI import Ui_MainWindow 12 13 # Initialize logging14 import sas.qtgui.Utilities.SasviewLogger15 12 16 13 class MainSasViewWindow(QMainWindow, Ui_MainWindow):
Note: See TracChangeset
for help on using the changeset viewer.