Changeset 46ca1f4 in sasview


Ignore:
Timestamp:
Jul 18, 2018 4:24:05 AM (3 months ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Children:
1309205b
Parents:
6138f73
Message:

use QTextBrowser.append to facilitate auto-scrolling in the Log Explorer

File:
1 edited

Legend:

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

    r41d6187 r46ca1f4  
    8787        # Fork off logging messages to the Log Window 
    8888        handler = setup_qt_logging() 
    89         handler.messageWritten.connect(self.listWidget.insertPlainText) 
     89        handler.messageWritten.connect(self.appendLog) 
    9090 
    9191        # Log the start of the session 
     
    269269        """ 
    270270        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()) 
    271276 
    272277    def createGuiData(self, item, p_file=None): 
Note: See TracChangeset for help on using the changeset viewer.