会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Uoky
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
22
下一页
2024年1月17日
python pyqt6 颜色弹窗 QColorDialog
摘要: def setColor(self): # 避免窗口置顶后,Dialog被主窗口覆盖,所以需要传递self # 设定默认颜色使用getColor的第一个参数(使用setCurrentColor不生效) # "选择颜色" 为Dialog弹窗的标题 # 设定QColorDialog.ColorDialo
阅读全文
posted @ 2024-01-17 16:15 人间春风意
阅读(195)
评论(0)
推荐(0)
2024年1月16日
python pyqt6 QComboBox 设定下拉框背景颜色
摘要: 设定QComboBox 的背景颜色,边框设定,以及下拉框的背景颜色以及边框设定, selection-background-color 不生效可忽略 xxx_source = QComboBox(self.xxx_frame) xxx_source.setStyleSheet("QComboBox
阅读全文
posted @ 2024-01-16 17:00 人间春风意
阅读(688)
评论(0)
推荐(0)
python pyqt6 设定logo图标
摘要: 如果是Window self.setWindowIcon(QIcon(get_icon('logo.png'))) 如果是Dialog self.login_dialog.setWindowIcon(QIcon(get_icon('logo.png')))
阅读全文
posted @ 2024-01-16 16:03 人间春风意
阅读(381)
评论(0)
推荐(0)
python pyqt6 设定窗口置顶
摘要: self.setWindowFlag(Qt.WindowType.WindowStaysOnTopHint)即可效果一般,页面会出现闪烁一次, # 置顶按钮 self.top_button = QPushButton('', self) self.top_button.move(self.width
阅读全文
posted @ 2024-01-16 14:59 人间春风意
阅读(860)
评论(0)
推荐(0)
2024年1月15日
python pyqt6 QPushButton 设定快捷键
摘要: import os import sys from PyQt6.QtWidgets import QPushButton from PyQt6.QtGui import QIcon from PyQt6.QtCore import QSize # ......中间省略 # 初始化按钮 self.bt
阅读全文
posted @ 2024-01-15 16:51 人间春风意
阅读(279)
评论(0)
推荐(0)
2024年1月3日
Mysql table 调整table的字符集和校对规则
摘要: ALTER TABLE `xxxx`.`xxx` CHARACTER SET = utf8mb4 , COLLATE = utf8mb4_0900_ai_ci ;
阅读全文
posted @ 2024-01-03 10:58 人间春风意
阅读(28)
评论(0)
推荐(0)
2023年12月21日
conda 创建和删除虚拟环境
摘要: conda create -n 新的虚拟环境名 --clone 旧的虚拟环境名称 conda create -n 新的虚拟环境名 python=3.11.5 conda env remove -n 待删除的虚拟环境名 conda info --envs # 获取虚拟环境列表信息 conda acti
阅读全文
posted @ 2023-12-21 09:38 人间春风意
阅读(71)
评论(0)
推荐(0)
docker 命令 报错device or resource busy
摘要: 背景: docker-compose up -d 运行容器报错:failed to remove root filesystem for xxx: remove /var/lib/docker/devicemapper/mnt/xxx: device or resource busy 解决: (如果
阅读全文
posted @ 2023-12-21 09:13 人间春风意
阅读(337)
评论(0)
推荐(0)
2023年12月20日
vscode 安装历史版本
摘要: 修改版本号为想要下载的版本即可 https://update.code.visualstudio.com/{版本}/win32-x64-archive/stable vscode 历史版本地址:Visual Studio Code 常见问题
阅读全文
posted @ 2023-12-20 15:10 人间春风意
阅读(939)
评论(0)
推荐(0)
pyinstaller 打包 win32ctypes.pywin32.pywintypes.error: (225, '', '无法成功完成操作,因为文件包含病毒或潜在的垃圾软件。')
摘要: 背景: 使用python 写了一个程序,使用pyinstaller打包, 不使用-w --noconsole的命令打包隐藏命令行窗口时,是正常的, 但是使用-w或者--noconsole就会报错win32ctypes.pywin32.pywintypes.error: (225, '', '无法成功
阅读全文
posted @ 2023-12-20 13:19 人间春风意
阅读(6409)
评论(2)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
22
下一页
公告