def __init__(self, parent=None, title="Console Output"):
"""Constructor for QConsoleOutputWidget.
Keyword Arguments:
parent -- parent widget for this widget (default: None)
title -- Title for the window (default: "Console Output")
Example:
QConsoleOutputWidget()
QConsoleOutputWidget(title="Program Output")
"""
super().__init__(parent)
self.setWindowTitle(str(title))
self.setGeometry(800, 400, 600, 200)
QtGui.QFontDatabase().addApplicationFont(Resources.monspaceFont)
self.messageQueue = []
self.__processes = []
self.__processThreads = []
self.__printLock = threading.Lock()
self.__initUI()
QConsoleOutputWidget.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录