随笔分类 - python qt5
摘要:## 一、Pycharm中配置Pyinstaller 首先,要下载个pyinstaller库,用pip install installer等待完成即可 (顺带记录下pip 配置国内镜像的方法: 国内源: - 阿里云 http://mirrors.aliyun.com/pypi/simple/ - 中
阅读全文
摘要:在Pycharm中通过GIT把项目上传到Gitee 学习PyQt5,准备编个小程序,上传到Gitee,老是用命令行太麻烦,所以准备在Pycharm中配置上传工具,网上找了好多教程,记录整理一下。 一、工具及准备工作 Pycharm 我的是PyCharm Community Edition 2021.
阅读全文
摘要:1、读取超链接: strold = cell.hyperlink.target 2、写入超链接: cell.value='=HYPERLINK("{}","{}")'.format('link','name') 3、批量替换超链接: 有时excel会自动更新excel中的超链接,有时禁用自动更新后还
阅读全文
摘要:1、pip openpyxl库: pip install openpyxl -i http://pypi.douban.com/simple --trust-host pypi.douban.com 2、导入模块 import openpyxl from openpyxl load_workbook
阅读全文
摘要:1 import sys 2 from PyQt5.Qt import * 3 4 class Mwindow(QWidget): 5 leftclick = False 6 7 def __init__(self): 8 super().__init__() 9 self.resize(500,5
阅读全文
摘要:1 import sys 2 from PyQt5 import QtWidgets,QtCore 3 from PyQt5.QtCore import Qt 4 from PyQt5.uic.properties import QtGui 5 6 key_list=['Qt.ControlModi
阅读全文
摘要:1 import sys 2 import typing 3 4 from PyQt5 import QtWidgets, QtGui, QtCore 5 import random 6 7 class Mywindow(QtWidgets.QWidget): 8 def __init__(self
阅读全文
摘要:1 信号与槽的设置中,槽函数不用写括号: btn.clicked.connect(cao()) def cao(): ******** 会报错:argument 1 has unexpected type 'NoneType' 应写成: btn.clicked.connect(cao) 2 重写类继
阅读全文

浙公网安备 33010602011771号