utils.py 文件源码

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

项目:activity-browser 作者: LCA-ActivityBrowser 项目源码 文件源码
def write(self, text):
        # TODO: Doesn't seem to have any effect
        if self.color:
            original = self.edit_widget.textColor()
            self.edit_widget.setTextColor(QtGui.QColor(self.color))

        self.edit_widget.moveCursor(QtGui.QTextCursor.End)
        self.edit_widget.insertPlainText(text)

        if self.color:
            self.edit_widget.setTextColor(original)

        if self.out:
            self.out.write(text)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号