上一页 1 2 3 4 5 6 7 8 9 10 ··· 29 下一页
摘要: 依赖 Fork from coffee-it/uPing . 源代码为适配 Unix 的 MicroPython 代码,有关方法返回值存在差异,此处适配。 差异 经分析关键在于 usocket.getaddrinfo() 函数。 直接在 ESP32 上运行代码,报错点位在 uping.py 的 73 阅读全文
posted @ 2022-07-16 18:35 Yogile 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 依赖 下载 pahao-mqtt : pip install paho-mqtt 引用: from paho.mqtt import client as MQTTClient from time import sleep 示例 非匿名连接 初始化数据: class Config: BROKER = 阅读全文
posted @ 2022-07-15 23:32 Yogile 阅读(217) 评论(0) 推荐(0) 编辑
摘要: EMQ X 安装 初始化 docker-compose: version: '3.1' volumes: vol-emqx-data: vol-emqx-etc: vol-emqx-log: services: emqx: image: emqx/emqx restart: always conta 阅读全文
posted @ 2022-07-12 22:01 Yogile 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 简单代码 # 导入函数库 import requests import os import time # 创建目录 goalPath = "D:\\test" if not os.path.exists(goalPath): os.mkdir(goalPath) # url 变化部分独立 count 阅读全文
posted @ 2022-07-04 13:00 Yogile 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 书签编辑 书签编辑操作使用 Adobe Acrobat DC 打开 PDF 文件即可编辑。 统一页面大小 Adobe Acrobat DC 可以将多个图片整合为一个 PDF 文件,由于图片本身分辨率、标识符等的区别,生成的 PDF 可能存在页面大小不一的情况。 使用 Adobe Acrobat DC 阅读全文
posted @ 2022-07-04 12:54 Yogile 阅读(1613) 评论(0) 推荐(0) 编辑
摘要: 效果 说明 设置了两个 Frame ,一个为左边内部组件为垂直布局的按钮集合,一个为右边用于 页面切换 的方形区域,宽度比为 1 : 5 。 初始化 stackedWidget # 以父 Frame 为父组件,构建完整覆盖父 Frame 的空间 self.stackedWidget = QtWidg 阅读全文
posted @ 2022-06-27 19:51 Yogile 阅读(1948) 评论(0) 推荐(0) 编辑
摘要: 信号和槽 信号 signal 和槽 slot 是 PyQt5 的组件对象之间通信的基础。当信号触发时,连接的槽函数将会自动执行。通过 object.signal.connect() 方法连接。 内置信号 内置信号有:左键点击 clicked 、控件被激活 activated 、QAction 等的触 阅读全文
posted @ 2022-06-27 19:44 Yogile 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 设置系统托盘 具体见源码方法 def setTrayIcon(self):... setContextMenu() 配置右键菜单, show() 使其显示。 双击活动窗口显示 activated[QtWidgets.QSystemTrayIcon.ActivationReason].connect( 阅读全文
posted @ 2022-06-27 15:15 Yogile 阅读(1862) 评论(0) 推荐(0) 编辑
摘要: 依赖 pip install gmssl re requests 参考 https://const.net.cn/tool/sm2/genkey/ https://pypi.org/project/gmssl/ https://www.cnblogs.com/52why/p/15902213.htm 阅读全文
posted @ 2022-06-26 21:27 Yogile 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: 处置 在 Code Runner 的扩展设置中,勾选 Code-runner: Run In Terminal 即可。 或者 Ctrl + P 搜索 > Open Settings (JSON) 在 Setting.json 中添加: { ... "code-runner.runInTerminal 阅读全文
posted @ 2022-06-19 21:29 Yogile 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 29 下一页