# 桌面成语 **Repository Path**: CZXyee/desktop-chengyu ## Basic Information - **Project Name**: 桌面成语 - **Description**: 桌面成语小组件。 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-27 - **Last Updated**: 2025-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python ## README # 桌面成语 #### 介绍 一个桌面成语,可以显示成语及其释义、出处、例句,使用 Python 编写,PyQt5 作为 GUI 框架。支持日/夜间模式自动切换,支持拖拽、置顶显示等功能。 ![img00](images/img00.png) ![img01](images/img01.png) ![img02](images/img02.png) #### 功能特点 - 显示成语及其释义、出处、例句 - 支持日/夜间模式自动切换(在 setting.json 中配置) - 支持拖拽移动位置 - 支持置顶显示 - 支持系统托盘操作 - 支持自动更新(在 setting.json 中配置,默认每小时) - 支持右键快速切换内容类型 - 自适应成语长度,自动调整字号 #### 使用 [下载 (win10及以上)](https://gitee.com/CZXyee/desktop-chengyu/releases/download/0.0.2/dist.zip),解压后双击 `desktop idiom.exe` 以运行。 从源码运行: ```bash # 创建虚拟环境并安装依赖 setup.bat # 运行程序 run.bat ``` #### 数据来源 成语数据来自 [chinese-xinhua](https://github.com/pwxcoo/chinese-xinhua) 项目,感谢作者的开源贡献。 #### 打包 ```bash pyinstaller ./app.spec ``` #### 提示 如需要开机自启,可以将应用快捷方式[添加至启动文件夹](https://www.dell.com/support/kbdoc/zh-cn/000124550/%E5%9C%A8-windows-10-%E4%B8%AD%E5%B0%86%E7%A8%8B%E5%BA%8F%E5%92%8C%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%B7%BB%E5%8A%A0%E5%88%B0%E5%90%AF%E5%8A%A8%E6%96%87%E4%BB%B6%E5%A4%B9): 1. 运行`shell:startup`打开“启动”文件夹;![alt text](images/运行命令框.jpg) 2. 创建 `desktop idiom.exe` 快捷方式并添加到“启动”文件夹内。