上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页
摘要: QFileDialog继承了QDialog,具有父类的各种方法。 QFileDialog提供了一个对话框,允许用户选择文件或者目录,也允许用户遍历文件系统,用以选择一个或多个文件或者目录。 常用方法 # 获取一个打开文件的文件名 getOpenFileNames ([parent=None[, ca 阅读全文
posted @ 2023-02-21 15:59 华小电 阅读(394) 评论(0) 推荐(0)
摘要: 项目地址:https://github.com/tsl0922/ttyd 根据系统配置下载对应的文件 设置服务 /etc/systemd/system/ttyd.service [Unit] Description=ttyd After=syslog.target After=network.tar 阅读全文
posted @ 2023-02-09 08:52 华小电 阅读(733) 评论(0) 推荐(0)
摘要: 主窗口main.py from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, QMetaObject, QObject, QPoint, QRect, QSize, QTime, QUrl, Qt) from 阅读全文
posted @ 2023-02-08 10:47 华小电 阅读(472) 评论(0) 推荐(0)
摘要: 实现功能 在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 华小电 阅读(499) 评论(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 华小电 阅读(82) 评论(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 华小电 阅读(981) 评论(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 华小电 阅读(272) 评论(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 华小电 阅读(55) 评论(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 华小电 阅读(55) 评论(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 华小电 阅读(66) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页