## PySide1-Customized-Window
### 简介 Introduction
本Python模块是PySideX-Customized-Window的PySide1分支,允许用户创建自定义非客户区窗口,非客户区使用PySide1绘制,支持移动、最小化、最大化、贴边自动布局、背景模糊等功能。只支持Windows、ReactOS、Wine平台。
<br>
This Python module is the PySide1 branch of PySideX-Customized-Window, allows users to create windows with customized non-client area which are drawn with PySide1, support moving, minimizing, maximizing, auto-layout of borders, background blurring, etc. It only supports Windows, ReactOS and Wine.
### 安装命令 Installation command
*`python -m pip install PySide1-Customized-Window`*
### 示例代码 Example code
```
# -*- coding: utf-8 -*-
import sys
from PySide.QtGui import *
from PySide.QtCore import *
from PySide1_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": "PySide1-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/48/61/3350915ee39fa411d4d982181411fb29bbdbb7935f0d963a92d1c914e580/PySide1_Customized_Window-1.16.tar.gz",
"platform": null,
"description": "## PySide1-Customized-Window\n### \u7b80\u4ecb Introduction\n\u672cPython\u6a21\u5757\u662fPySideX-Customized-Window\u7684PySide1\u5206\u652f\uff0c\u5141\u8bb8\u7528\u6237\u521b\u5efa\u81ea\u5b9a\u4e49\u975e\u5ba2\u6237\u533a\u7a97\u53e3\uff0c\u975e\u5ba2\u6237\u533a\u4f7f\u7528PySide1\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 PySide1 branch of PySideX-Customized-Window, allows users to create windows with customized non-client area which are drawn with PySide1, 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 PySide1-Customized-Window`*\n### \u793a\u4f8b\u4ee3\u7801 Example code\n```\n# -*- coding: utf-8 -*-\nimport sys\nfrom PySide.QtGui import *\nfrom PySide.QtCore import *\nfrom PySide1_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 PySide1.",
"version": "1.16",
"project_urls": {
"Homepage": "https://yuzhouren86.github.io"
},
"split_keywords": [
"python",
"gui",
"pyside"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3e4cf7127a49f6c824be2ff9e8a3b0fd9ea0f7a6ee400d6bd90c0c1fa7040166",
"md5": "195f47f0b3e2fe6fb12dff4797209670",
"sha256": "05ad9006d8137d0f5aa1bc7231485bd95df0ad0c8d8b6a57effb78148cb3ac38"
},
"downloads": -1,
"filename": "PySide1_Customized_Window-1.16-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "195f47f0b3e2fe6fb12dff4797209670",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=2.6",
"size": 14892,
"upload_time": "2024-06-22T11:00:46",
"upload_time_iso_8601": "2024-06-22T11:00:46.837243Z",
"url": "https://files.pythonhosted.org/packages/3e/4c/f7127a49f6c824be2ff9e8a3b0fd9ea0f7a6ee400d6bd90c0c1fa7040166/PySide1_Customized_Window-1.16-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "48613350915ee39fa411d4d982181411fb29bbdbb7935f0d963a92d1c914e580",
"md5": "1a2d227601db2b8a1922c44c0bf21e5a",
"sha256": "0cfdef6dc72968d44a0d7e5b37bc6761d92d2f14162d067fbb090d21e7f70eae"
},
"downloads": -1,
"filename": "PySide1_Customized_Window-1.16.tar.gz",
"has_sig": false,
"md5_digest": "1a2d227601db2b8a1922c44c0bf21e5a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=2.6",
"size": 15195,
"upload_time": "2024-06-22T11:00:49",
"upload_time_iso_8601": "2024-06-22T11:00:49.279326Z",
"url": "https://files.pythonhosted.org/packages/48/61/3350915ee39fa411d4d982181411fb29bbdbb7935f0d963a92d1c914e580/PySide1_Customized_Window-1.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-22 11:00:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pyside1-customized-window"
}