Skip to main content

A customized window based on PySideX.

Project description

PySideX-Customized-Window

简介 Introduction

本Python模块是一个基于PySideX的界面模块,允许用户创建自定义非客户区窗口,非客户区使用PySideX绘制,支持移动、最小化、最大化、贴边自动布局、背景模糊等功能,分为3个版本:PySide1-Customized-Window、PySide2-Customized-Window、PySide6-Customized-Window,分别对应PySide1/PySide2/PySide6。只支持Windows、ReactOS、Wine平台。
This Python module is a PySideX-based interface module that allows users to create windows with customized non-client area, which are drawn using PySideX, support moving, minimizing, maximizing, auto-layout of borders, background blurring, etc. There are 3 branches: PySide1-Customized-Window, PySide2- Customized-Window, PySide6-Customized-Window, which correspond to PySide1/PySide2/PySide6 respectively. It only supports Windows, ReactOS and Wine.

安装命令 Installation command

python -m pip install PySide1-Customized-Window
python -m pip install PySide2-Customized-Window
python -m pip install PySide6-Customized-Window

示例代码 Example code

# -*- coding: utf-8 -*-
import sys
#from PySide2 import *
from PySide2_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)
QApplication.setHighDpiScaleFactorRoundingPolicy(Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True)
QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps, True)
app = QApplication(sys.argv)
window = MyWindow()
window.setWindowTitle('Window')
window.setDarkTheme(2)
window.resize(int(400.0 * window.dpi / 96.0), int(175.0 * window.dpi / 96.0))
window.setWindowIcon(QIcon('Icon.ico'))
button = QPushButton('Button', window.clientArea)
window.show()
app.exec_()

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

PySide1_Customized_Window-1.4-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

PySide1_Customized_Window-1.4-py2-none-any.whl (11.0 kB view details)

Uploaded Python 2

File details

Details for the file PySide1_Customized_Window-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aedead2fabff6116e5efb694203b8dff01cd947ec69e08b4bcfd4066e946713a
MD5 7c423c3939fa1228ed7bf6f2210c551b
BLAKE2b-256 29135bce5c71acd2ca3fbaa2e7ec41fd8a26e64c9258445cd9a8c1eef0487604

See more details on using hashes here.

File details

Details for the file PySide1_Customized_Window-1.4-py2-none-any.whl.

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.4-py2-none-any.whl
Algorithm Hash digest
SHA256 89956be800a9de151e2ecf207ca23d5ca569059fd935c826fc2d3b1d6b560859
MD5 e0421c41bb70d0b224870556156fe7de
BLAKE2b-256 62bcae8f60b396df93f920562b0cde708219e8ac7e5eef873b3d038fdca1d087

See more details on using hashes here.

Supported by

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