PySide6-Customized-Window


NamePySide6-Customized-Window JSON
Version 1.16 PyPI version JSON
download
home_pagehttps://yuzhouren86.github.io
SummaryA customized window based on PySide6.
upload_time2024-06-22 11:01:10
maintainerNone
docs_urlNone
authorYuZhouRen86
requires_python>=2.6
licenseNone
keywords python gui pyside
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## PySide6-Customized-Window
### 简介 Introduction
本Python模块是PySideX-Customized-Window的PySide6分支,允许用户创建自定义非客户区窗口,非客户区使用PySide6绘制,支持移动、最小化、最大化、贴边自动布局、背景模糊等功能。只支持Windows、ReactOS、Wine平台。
<br>
This Python module is the PySide6 branch of PySideX-Customized-Window, allows users to create windows with customized non-client area which are drawn with PySide6, support moving, minimizing, maximizing, auto-layout of borders, background blurring, etc. It only supports Windows, ReactOS and Wine.
### 安装命令 Installation command
*`python -m pip install PySide6-Customized-Window`*
### 示例代码 Example code
```
# -*- coding: utf-8 -*-
import sys
from PySide6.QtWidgets import *
from PySide6.QtGui import *
from PySide6.QtCore import *
from PySide6_Customized_Window import *
#class MyWindow(BlurWindow):
class MyWindow(CustomizedWindow):
    def __init__(self):
        super(MyWindow, self).__init__()
    def MessageHandler(self, hwnd, message, wParam, lParam):
        print(hwnd, message, wParam, lParam)
app = QApplication(sys.argv)
window = MyWindow()
list(map(window.setTitleTextColour, [QColor(0, 0, 139), QColor(119, 235, 255)], [1, 2], [1] * 2))
list(map(window.setMenuButtonColour, [QColor(0, 0, 139), QColor(119, 235, 255)], [1, 2], [1] * 2))
window.setWindowTitle('Window')
window.setDarkTheme(2)
window.setWindowIcon(QIcon('Icon.ico'))
splashscreen = window.splashScreen()
splashscreen.show()
window.resize(*window.getWindowSizeByClientSize([int(400 * window.dpi() / 96.0), int(175 * window.dpi() / 96.0)]))
button = QPushButton('Button', window.clientArea)
window.show()
splashscreen.finish(window)
app.exec()
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://yuzhouren86.github.io",
    "name": "PySide6-Customized-Window",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=2.6",
    "maintainer_email": null,
    "keywords": "Python GUI PySide",
    "author": "YuZhouRen86",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/0c/11/58c6a9fa3a5f2d206c366ccac9d29180a2c92c977b5ae40749f541d260d4/PySide6_Customized_Window-1.16.tar.gz",
    "platform": null,
    "description": "## PySide6-Customized-Window\n### \u7b80\u4ecb Introduction\n\u672cPython\u6a21\u5757\u662fPySideX-Customized-Window\u7684PySide6\u5206\u652f\uff0c\u5141\u8bb8\u7528\u6237\u521b\u5efa\u81ea\u5b9a\u4e49\u975e\u5ba2\u6237\u533a\u7a97\u53e3\uff0c\u975e\u5ba2\u6237\u533a\u4f7f\u7528PySide6\u7ed8\u5236\uff0c\u652f\u6301\u79fb\u52a8\u3001\u6700\u5c0f\u5316\u3001\u6700\u5927\u5316\u3001\u8d34\u8fb9\u81ea\u52a8\u5e03\u5c40\u3001\u80cc\u666f\u6a21\u7cca\u7b49\u529f\u80fd\u3002\u53ea\u652f\u6301Windows\u3001ReactOS\u3001Wine\u5e73\u53f0\u3002\n<br>\nThis Python module is the PySide6 branch of PySideX-Customized-Window, allows users to create windows with customized non-client area which are drawn with PySide6, support moving, minimizing, maximizing, auto-layout of borders, background blurring, etc. It only supports Windows, ReactOS and Wine.\n### \u5b89\u88c5\u547d\u4ee4 Installation command\n*`python -m pip install PySide6-Customized-Window`*\n### \u793a\u4f8b\u4ee3\u7801 Example code\n```\n# -*- coding: utf-8 -*-\nimport sys\nfrom PySide6.QtWidgets import *\nfrom PySide6.QtGui import *\nfrom PySide6.QtCore import *\nfrom PySide6_Customized_Window import *\n#class MyWindow(BlurWindow):\nclass MyWindow(CustomizedWindow):\n    def __init__(self):\n        super(MyWindow, self).__init__()\n    def MessageHandler(self, hwnd, message, wParam, lParam):\n        print(hwnd, message, wParam, lParam)\napp = QApplication(sys.argv)\nwindow = MyWindow()\nlist(map(window.setTitleTextColour, [QColor(0, 0, 139), QColor(119, 235, 255)], [1, 2], [1] * 2))\nlist(map(window.setMenuButtonColour, [QColor(0, 0, 139), QColor(119, 235, 255)], [1, 2], [1] * 2))\nwindow.setWindowTitle('Window')\nwindow.setDarkTheme(2)\nwindow.setWindowIcon(QIcon('Icon.ico'))\nsplashscreen = window.splashScreen()\nsplashscreen.show()\nwindow.resize(*window.getWindowSizeByClientSize([int(400 * window.dpi() / 96.0), int(175 * window.dpi() / 96.0)]))\nbutton = QPushButton('Button', window.clientArea)\nwindow.show()\nsplashscreen.finish(window)\napp.exec()\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A customized window based on PySide6.",
    "version": "1.16",
    "project_urls": {
        "Homepage": "https://yuzhouren86.github.io"
    },
    "split_keywords": [
        "python",
        "gui",
        "pyside"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24bd0a6d1f966128471a21de7aa78c71e8eb0b73b80570efc6568a51a8b28511",
                "md5": "833c18584af2e34e79f4e74d9a0fba46",
                "sha256": "c428a671e1dee845ebfaa4961f708cd1d39efc0b82e1dc25060713be2a9520cb"
            },
            "downloads": -1,
            "filename": "PySide6_Customized_Window-1.16-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "833c18584af2e34e79f4e74d9a0fba46",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.6",
            "size": 14905,
            "upload_time": "2024-06-22T11:01:08",
            "upload_time_iso_8601": "2024-06-22T11:01:08.742301Z",
            "url": "https://files.pythonhosted.org/packages/24/bd/0a6d1f966128471a21de7aa78c71e8eb0b73b80570efc6568a51a8b28511/PySide6_Customized_Window-1.16-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0c1158c6a9fa3a5f2d206c366ccac9d29180a2c92c977b5ae40749f541d260d4",
                "md5": "5d6fdb3b1e0f3e5c41465cdc8569be05",
                "sha256": "0ad43affd739aa8e23f041c30f7464be9a2ef48418722bec20f30d716e892ef9"
            },
            "downloads": -1,
            "filename": "PySide6_Customized_Window-1.16.tar.gz",
            "has_sig": false,
            "md5_digest": "5d6fdb3b1e0f3e5c41465cdc8569be05",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.6",
            "size": 15196,
            "upload_time": "2024-06-22T11:01:10",
            "upload_time_iso_8601": "2024-06-22T11:01:10.544091Z",
            "url": "https://files.pythonhosted.org/packages/0c/11/58c6a9fa3a5f2d206c366ccac9d29180a2c92c977b5ae40749f541d260d4/PySide6_Customized_Window-1.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-22 11:01:10",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pyside6-customized-window"
}
        
Elapsed time: 3.99806s