Skip to content

Commit dae1f7f

Browse files
committed
doc: update readme
1 parent e12c5d5 commit dae1f7f

File tree

2 files changed

+69
-19
lines changed

2 files changed

+69
-19
lines changed

README.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,55 @@
1313
</p>
1414

1515
## Install
16-
Download this repository and run setup.py in cmd line:
16+
Clone this repository and run the following command in your terminal:
17+
1718
```cmd
1819
python setup.py install
1920
```
20-
Due to the fact that this project is still in the development stage, it is temporarily not available on PyPi.
21-
22-
However, we are currently working hard on it and will be available soon.
2321

22+
> ⚠️ This project is still under active development. It is **not yet available on PyPi**, but will be in the future.
2423
25-
## Run Examples
26-
Run `examples/Gallery for siui/start.py` to take a look at widgets and components of PyQt-SiliconUI
2724

28-
To quick start, run:
29-
```cmd
30-
cd "examples/Gallery for siui"
31-
start start.py
25+
## Run the Example Gallery
26+
To explore the widgets, components, and framework offered by PyQt-SiliconUI, run
27+
```
28+
examples/Gallery for siui/start.py
3229
```
33-
Other more detailed examples for widgets are coming soon.
30+
31+
### Refactoring Plan
32+
33+
The refactoring of widgets is nearing completion. You can try them on the "Refactored Widgets" page in the Gallery.
34+
35+
**Please note**:
36+
If you plan to start a project using PyQt-SiliconUI in the near future, it is **highly recommended to use only the widgets listed under “Refactored Widgets”**.
37+
The older widgets have many issues and are being gradually replaced.
38+
39+
Similarly, the application templates are also under a complete overhaul. Work on them will begin once the core widget and component refactors are done.
40+
Since the current templates contain many flaws and have poor implementations,
41+
**we strongly advise against using the old application templates for real-world projects until the refactor is complete**.
42+
43+
### Refactored Modules Overview
44+
45+
Below are actively maintained modules. Once these are fully implemented, outdated ones will be removed from the repository.
46+
47+
#### Widgets
48+
49+
- siui/components/button.py – Refactored button widgets
50+
- siui/components/container.py – Refactored containers managed using Qt’s layout system
51+
- siui/components/editor.py – Refactored input/edit widgets
52+
- siui/components/graphic.py – Proxy widgets, wrappers, and graphic-related utilities
53+
- siui/components/label.py – Widgets for displaying text and images, plus uncategorized ones
54+
- siui/components/layout.py – New implementations of flow and waterfall layouts, also using Qt layouts
55+
- siui/components/menu_.py – Menu components
56+
- siui/components/popover.py – Popover-style widgets such as date pickers and time pickers
57+
- siui/components/progress_bar_.py – Refactored progress bar widgets
58+
- siui/components/slider_.py – Refactored sliders, including horizontal sliders and scrollbar handles
59+
60+
#### Core Features
61+
62+
- siui/core/animation.py – Refactored animation utilities
63+
- siui/core/event_filter.py – Various event filters
64+
- siui/core/painter.py – Core drawing-related functions
3465

3566

3667
## See Also
@@ -41,4 +72,4 @@ Here are some project that created based on PyQt-SiliconUI:
4172
## License
4273
PyQt-SiliconUI is licensed under [GPLv3](LICENSE)
4374

44-
Copyright © 2024 by ChinaIceF.
75+
Copyright © 2024-2025 by ChinaIceF.

docs/README_zh.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,31 @@ python setup.py install
2323
## 运行示例程序
2424
运行 `examples/Gallery for siui/start.py` 来体验 PyQt-SiliconUI 提供的控件、组件和框架
2525

26-
也可直接在项目目录下运行以下命令:
27-
```cmd
28-
cd "examples/Gallery for siui"
29-
start start.py
30-
```
31-
其他针对各类控件的详细实例将逐一编写
26+
### 重构计划
27+
控件的重构即将完成。你可以在 Gallery 的 “重构控件” 页面试用。
28+
29+
**请注意**,如果您近期想尝试 PyQt-SiliconUI 编写项目,**非常不推荐您使用除了 “重构控件” 以外的控件**。旧控件包含大量缺陷,正在逐步被重构控件取代。另外,应用模版也在重构计划内。将会在控件、组件的重构基本完成后着手实现。由于旧的应用模板存在大量的代码漏洞,功能的实现也非常丑陋,
30+
**在应用模版重构完成前,不建议您正式使用 PyQt-SiliconUI 的应用模版搭建项目**
31+
32+
### 重构模块内容解释
33+
以下列出了一些正在积极维护的模块。完全完成这些模块的实现后,将从仓库中移除旧的模块 / 包。
34+
35+
#### 控件
36+
- `siui/components/button.py` 包含了重构的按钮控件
37+
- `siui/components/container.py` 包含了重构的容器。新的容器全部采用 Qt 的 Layout 系统进行管理。
38+
- `siui/components/container.py` 包含了重构的编辑框控件
39+
- `siui/components/graphic.py` 包含图形代理控件,包装器等与图形代理相关的控件和功能
40+
- `siui/components/label.py` 包含以展示简单文本和图像为功能的控件,以及一些暂未归类的控件
41+
- `siui/components/layout.py` 包含流式布局,瀑布流布局的新实现。与重构的容器一样采用 Layout 系统进行管理
42+
- `siui/components/menu_.py` 包含菜单组件
43+
- `siui/components/popover.py` 包含一些 popover 类窗口的实现,例如日期选择器,时间选择器等
44+
- `siui/components/progress_bar_.py` 包含重构的进度条控件
45+
- `siui/components/slider_.py` 包含重构的滑块。例如水平滑块,滚动区域的滑块等
46+
47+
#### 功能
48+
- `siui/core/animation.py` 包含重构的动画
49+
- `siui/core/event_filter.py` 包含各种事件过滤器
50+
- `siui/core/painter.py` 包含绘制相关功能的实现
3251

3352

3453
## 另请参阅
@@ -39,7 +58,7 @@ start start.py
3958
## 许可证
4059
PyQt-SiliconUI 使用 [GPLv3](../LICENSE) 许可证
4160

42-
版权所有 © 2024 by ChinaIceF.
61+
版权所有 © 2024-2025 by ChinaIceF.
4362

4463

4564
## 特别声明

0 commit comments

Comments
 (0)