摘要: open(file, mode='r') 完整的语法格式为: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) 参数说明: file: 必需, 阅读全文
posted @ 2021-06-09 14:56 Gex 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 使用PyQt5做UI,我一直使用QTextBrowser作为LOG的输出界面。不知道对不对。感觉QTextBrowser是文本浏览器,就像txt一样是查看文本的。字面意思吧,好吧,我英文不好 QTextBrowser刷新 上代码 def text_browser_show(self, mes): s 阅读全文
posted @ 2021-06-09 14:14 Gex 阅读(6369) 评论(0) 推荐(0) 编辑
摘要: 看别人的GUi界面的状态栏都有许多控件,感觉很Nice,网上找了些,感觉还是自己写一个号点。 上代码: import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import QTimer class StatusDemo(QMainWin 阅读全文
posted @ 2021-06-09 10:28 Gex 阅读(2327) 评论(0) 推荐(1) 编辑