You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1008 B
Python
25 lines
1008 B
Python
from PyQt5.QtCore import QAbstractItemModel, QModelIndex, Qt
|
|
from PyQt5.QtGui import QIcon, QFont
|
|
from PyQt5.QtWidgets import QDockWidget, QTextBrowser
|
|
from DcsUi.DockCLass import NewDockWidget
|
|
|
|
class LogDockWidget(NewDockWidget):
|
|
def __init__(self, title, parent=None):
|
|
NewDockWidget.__init__(self, title, parent=parent)
|
|
self.parent = parent
|
|
self.logBrowser = QTextBrowser()
|
|
self.logBrowser.setFont(QFont("Timers", 20));
|
|
self.setWidget(self.logBrowser)
|
|
|
|
def updateLog(self, rowIndex):
|
|
logCon = self.parent.dockTop.ExcelTab.currentWidget().proListView.getRowContent(rowIndex)
|
|
if logCon:
|
|
self.logBrowser.append(logCon + '已经完成\r\n')
|
|
else:
|
|
pass
|
|
if self.parent.dockTop.ExcelTab.currentWidget().proListView.colsLen == rowIndex:
|
|
self.logBrowser.append('已经全部完成\r\n')
|
|
self.cursor = self.logBrowser.textCursor()
|
|
self.logBrowser.moveCursor(self.cursor.End)
|
|
|