xcgui - bundled xcgui for python
Project description
XCGUI for Python
介绍
- 本库封装自炫彩界面库,功能丰富(1000多个API接口),简单易用,轻量级,高度DIY自定义,支持一键换肤。
- 炫彩界面库是由C/C++语言开发:软件运行效率高,不需要第三方库的支持,不依赖MFC,ATL,WINDOWS标准控件等。
- DirectUI设计思想:在窗口内没有子窗口,界面元素都是逻辑上的区域(无HWND句柄,安全,灵活),所有UI元素都是自主开发(不受系统限制),更加灵活的实现各种程序界面,满足不同用户的需求。
- 拥有免费的UI设计器:快速开发工具,所见即所得,高度自定义系统(DIY),让UI开发变的更加简单。
- 支持Direct2D,硬件加速,能更大程度的发挥硬件特性,创建高性能,高质量的2D图形。
- 有完善的中文官方文档:中文官方文档
获取
pip install xcgui
国内源安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xcgui
可视化UI设计器
使用UI设计器可以快速设计界面,节省大量代码。
[设计器使用例子]只有这么多代码:
from xcgui import XApp, XWindow, XDesigner
app = XApp()
app.enableDPI(True)
XDesigner.loadResource("baidu\\resource.res")
class BaiduWindow(XWindow):
def __init__(self):
super(BaiduWindow, self).__init__()
self.loadLayout("baidu\\main.xml")
window = BaiduWindow()
window.showWindow()
app.run()
app.exit()
简单窗口(纯代码)
# -*- coding: utf8 -*-
import xcgui
from xcgui import XApp, XWindow, XButton, XEdit
class DemoWindow(XWindow):
def __init__(self):
super(DemoWindow, self).__init__(400, 300, "XCGUI界面库 for python")
self.enableLayout(True)
self.setAlignV(xcgui.layout_align_center)
self.setAlignH(xcgui.layout_align_center)
self.enableHorizon(False)
self.setSpace(20)
self.btn = XButton(100, 30, "测试", self)
self.btn.regEvent(xcgui.XE_BNCLICK, self.onBtnClick)
self.edit = XEdit(200, 30, self)
def onBtnClick(self, event, userdata):
self.edit.setText("你好,世界!")
self.edit.redraw(True)
def main():
app = XApp()
app.enableDPI(True)
window = DemoWindow()
window.showWindow()
app.run()
app.exit()
if __name__ == '__main__':
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xcgui-0.1.9-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: xcgui-0.1.9-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3d8d44abd78c74b87298db7cfa99632ae02ad1a7a499aa0b68a7dfa345bf984
|
|
| MD5 |
ecad3a816075db0569994aad27472256
|
|
| BLAKE2b-256 |
e3cfa7e14177ecd791367b5c001e122f1adfda3527437ec1884d6479061cede8
|
File details
Details for the file xcgui-0.1.9-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: xcgui-0.1.9-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d03326945f5a3fafa43042af715d83690e9e51446f4f49253053c7e411da0136
|
|
| MD5 |
0abc72180332951552db62ab63bb5fe4
|
|
| BLAKE2b-256 |
e948988c2d0d1d05d7fd0c0319a5d5d324a5f7c41a2d597cbb84e5cd4159273a
|
File details
Details for the file xcgui-0.1.9-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: xcgui-0.1.9-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e09005253596acd4d2728f7bceebfbd09f0c26cc83ac6e61c0f7fc36638da60d
|
|
| MD5 |
32fab199235b02471c533f850cc7ae0b
|
|
| BLAKE2b-256 |
9dbf690daf6117b92ebd3d1a4dbd6ae1f881dab58074a52c86a7570e5278fb6a
|
File details
Details for the file xcgui-0.1.9-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: xcgui-0.1.9-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee8081ad56c9d56ae6bd3e2dc0dae849dc4411bfb70bade9c1de6e3d2be32e13
|
|
| MD5 |
a8f5636bc3eed1d3872e2c2450877422
|
|
| BLAKE2b-256 |
dabd749c71916b400a05b9c188bdbd5403a1bf8e44899237d04e715e1076c0e6
|
File details
Details for the file xcgui-0.1.9-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: xcgui-0.1.9-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf39c4406334d1669c3d3d68cbfeef436a840b9207e648137963ac992fead434
|
|
| MD5 |
a60c1ce4cec576ef916ee7ff2fdeeee8
|
|
| BLAKE2b-256 |
ea459b62d24e7dff5e5364a881d3ec0e6f6a1ef20ac4b8bb751091a5942c6f2e
|
File details
Details for the file xcgui-0.1.9-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: xcgui-0.1.9-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6439511164d51246ee422e0fc6d560afa2f2fb5478391c34276e79af2c81b759
|
|
| MD5 |
381bac075a5ca50b4928b5adf5cacf60
|
|
| BLAKE2b-256 |
0467fb6f4fde89209b9740d06ce764cfa51818fc03deac2d795e26739daa3aa3
|