上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页
摘要: 实现功能 在MainWindow点击按钮“Open New Window”打开SubWindow 在SubWindow 点击按钮“Close the Window” 关闭 SubWindow 有QtDesigner设计两个窗口,转化为main_ui.py、sub_ui.py main_ui.py f 阅读全文
posted @ 2023-02-07 15:17 华小电 阅读(457) 评论(0) 推荐(0)
摘要: import sys from PySide6 import QtCore,QtWidgets from PySide6.QtWidgets import * from menu_ui import Ui_MainWindow //导入ui class menu(QMainWindow): def 阅读全文
posted @ 2023-02-07 10:28 华小电 阅读(45) 评论(0) 推荐(0)
摘要: 1.动态加载 import sys from PySide6 import QtCore,QtWidgets from PySide6.QtWidgets import * from PySide6.QtUiTools import QUiLoader class readfile(QWidget) 阅读全文
posted @ 2023-02-04 17:00 华小电 阅读(907) 评论(0) 推荐(0)
摘要: 通过QtDesigner将ui文件转存为py文件 不继承Ui_Form import sys from PySide6 import QtCore,QtWidgets from PySide6.QtWidgets import * from ui_test import Ui_Form class 阅读全文
posted @ 2023-02-04 10:52 华小电 阅读(232) 评论(0) 推荐(0)
摘要: Simple example import time import concurrent.futures start = time.perf_counter() def do_something(seconds): print(f'sleeping {seconds} second(s)...') 阅读全文
posted @ 2023-01-19 17:44 华小电 阅读(28) 评论(0) 推荐(0)
摘要: Simple example import time import multiprocessing start = time.perf_counter() def do_something(): print('sleeping 1 second...') time.sleep(1) print('D 阅读全文
posted @ 2023-01-19 16:57 华小电 阅读(33) 评论(0) 推荐(0)
摘要: Simple Example 1 import time import threading start = time.perf_counter() def do_something(): print('sleeping 1 second...') time.sleep(1) print('Done 阅读全文
posted @ 2023-01-19 16:40 华小电 阅读(23) 评论(0) 推荐(0)
摘要: ModbusTCP数据帧 ModbusTCP的数据帧可分为两部分:MBAP+PDU。 报文头MBAP MBAP为报文头,长度为7字节 | 事务处理标识 | 协议标识 | 长度 | 单元标识符 | | | | | | | 2字节 | 2字节 | 2字节 | 1字节 | | 内容 | 解释 | | | 阅读全文
posted @ 2023-01-15 20:16 华小电 阅读(589) 评论(0) 推荐(0)
摘要: 安装 1、到Mysql官网 选择需要的版本,下载DEB Bundle打包tar文件 2、解压后,依次安装DEB文件 卸载 1、查看系统上所有mysql相关的软件包 dpkg --get-selections | grep mysql libmysqlclient-dev install libmys 阅读全文
posted @ 2023-01-14 17:57 华小电 阅读(351) 评论(0) 推荐(0)
摘要: 01H-读线圈状态 Coil Status 1)描述:读从机线圈寄存器,位操作,可读单个或者多个; 2)发送指令: 假设从机地址位0x01,寄存器开始地址0x0023,寄存器结束抵制0x0038,总共读取21个线圈。协议图如下: | 从机地址 | 功能码 | 寄存器起始地址高八位 | 寄存器起始地址 阅读全文
posted @ 2023-01-14 09:50 华小电 阅读(1137) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页