PySide6-Customized-Window


NamePySide6-Customized-Window JSON
Version 1.15 PyPI version JSON
download
home_pagehttps://yuzhouren86.github.io
SummaryA customized window based on PySide6.
upload_time2024-02-08 07:21:08
maintainer
docs_urlNone
authorYuZhouRen86
requires_python>=2.6
license
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": "",
    "docs_url": null,
    "requires_python": ">=2.6",
    "maintainer_email": "",
    "keywords": "Python GUI PySide",
    "author": "YuZhouRen86",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/fb/d7/9f7cc47ae6be81e0550f1d8dfe95d7423780ae5cd99c20ef494d09421830/PySide6_Customized_Window-1.15.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": "",
    "summary": "A customized window based on PySide6.",
    "version": "1.15",
    "project_urls": {
        "Homepage": "https://yuzhouren86.github.io"
    },
    "split_keywords": [
        "python",
        "gui",
        "pyside"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbde446f2d2e45bcac0bd817216b11d11b045c58408ce48ef43c56e0d2876fec",
                "md5": "bcc2ca1d470d7f9089a55d13ea6f6977",
                "sha256": "099110da1cddb96bc2a5268f685aaab9a57735971d57968a0bcdf4a0e95f1349"
            },
            "downloads": -1,
            "filename": "PySide6_Customized_Window-1.15-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bcc2ca1d470d7f9089a55d13ea6f6977",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.6",
            "size": 14453,
            "upload_time": "2024-02-08T07:21:06",
            "upload_time_iso_8601": "2024-02-08T07:21:06.766556Z",
            "url": "https://files.pythonhosted.org/packages/fb/de/446f2d2e45bcac0bd817216b11d11b045c58408ce48ef43c56e0d2876fec/PySide6_Customized_Window-1.15-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbd79f7cc47ae6be81e0550f1d8dfe95d7423780ae5cd99c20ef494d09421830",
                "md5": "90539688d50dedb070f7be4d557dc9b0",
                "sha256": "c6ee1bb3aa8c47b4af94124c32648578945e125e4bf4766957866a23ce4def91"
            },
            "downloads": -1,
            "filename": "PySide6_Customized_Window-1.15.tar.gz",
            "has_sig": false,
            "md5_digest": "90539688d50dedb070f7be4d557dc9b0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.6",
            "size": 14717,
            "upload_time": "2024-02-08T07:21:08",
            "upload_time_iso_8601": "2024-02-08T07:21:08.803826Z",
            "url": "https://files.pythonhosted.org/packages/fb/d7/9f7cc47ae6be81e0550f1d8dfe95d7423780ae5cd99c20ef494d09421830/PySide6_Customized_Window-1.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 07:21:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pyside6-customized-window"
}
        
Elapsed time: 0.21221s