QConsoleOutputWidget.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:PyQt5-CWidgets 作者: ArmPitPerson 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号