Skip to main content

xcgui - bundled xcgui for python

Project description

XCGUI for Python

release XCGUI License

程序示例   官方文档   官方资源

介绍

  • 本库封装自炫彩界面库,功能丰富(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设计器可以快速设计界面,节省大量代码。

uidesigner

[设计器使用例子]只有这么多代码:

from xcgui import XApp, XWindow, XDesigner

app = XApp()
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()
    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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xcgui-0.1.8-cp313-cp313-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86-64

xcgui-0.1.8-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

xcgui-0.1.8-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

xcgui-0.1.8-cp310-cp310-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.10Windows x86-64

xcgui-0.1.8-cp39-cp39-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file xcgui-0.1.8-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: xcgui-0.1.8-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

Hashes for xcgui-0.1.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1de2cac0e7f58899941422fe58fcfb29c9b8dcdbfff40675bd7dab4c39dd14c7
MD5 e7d9570e18a73c498145a321fd566299
BLAKE2b-256 bd21a8338ab0e9b60d8ed31d9cbbc601ae2631758efba4642d4e91db482c28d9

See more details on using hashes here.

File details

Details for the file xcgui-0.1.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: xcgui-0.1.8-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

Hashes for xcgui-0.1.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 996ecceaec67f8509875e8baa8a87943fa427ca0a4f70a43f35780a5ff1a203e
MD5 deb7e4ccd28b85abfac77766c32d14ba
BLAKE2b-256 9e0dc68881102c73c47451fa30f1b9d9b9e6fe2d2b97aa4f92c17a23bb2ac159

See more details on using hashes here.

File details

Details for the file xcgui-0.1.8-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: xcgui-0.1.8-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

Hashes for xcgui-0.1.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8add2857931895d111fe4e62178831de45141a5709e0ef37d4c353b099cbd8f7
MD5 344fdd90ca3499b374933c772e13c72f
BLAKE2b-256 181901011d071ddb82581a2edebde57bf4e3455f5d51188fb891c4db2fea3ebc

See more details on using hashes here.

File details

Details for the file xcgui-0.1.8-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: xcgui-0.1.8-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

Hashes for xcgui-0.1.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2d4d43e8b91fe150247bedae22b2e87781c21dc503d9b358f6afcf8cbcd6b163
MD5 2d6520bdb9274071e562f959ddf7083f
BLAKE2b-256 25a8bc09fe68429ce46c3f3a6400e358a66dc76b659a13af4cf3fd40363aabee

See more details on using hashes here.

File details

Details for the file xcgui-0.1.8-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xcgui-0.1.8-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

Hashes for xcgui-0.1.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1acd0d1e35bbe6fd12102a78821044aaf427b5ba654a75fe5e2ecf805148802c
MD5 7446f02d0f73e5313c1dce4ac7ba8217
BLAKE2b-256 185f55c471e2d518f9c609d992fa29832ba67c0ab9868ca1eca122595a256252

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page