Skip to main content

A customized window based on PySideX.

Reason this release was yanked:

Bug of background blurring effect of class 'BlurWindow' on Windows10 and Windows11, Bugs of 'splashScreen' and Memory leak under PySide1.

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.QtWidgets import *
from PySide2.QtGui import *
from PySide2.QtCore 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.setWindowIcon(QIcon('Icon.ico'))
splashscreen = window.splashScreen()
splashscreen.show()
window.resize(int(400.0 * window.dpi / 96.0), int(175.0 * window.dpi / 96.0))
button = QPushButton('Button', window.clientArea)
window.show()
splashscreen.finish(window)
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.5-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

PySide1_Customized_Window-1.5-py2-none-any.whl (11.6 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 db224b09907e409a8e32e3a764bc636e180ef551bb0488bec6471a474bbdbf76
MD5 738965d6ce1d5092e7c0a11110e393c0
BLAKE2b-256 9ee13c635c92c968bf0c4a6ee14f3e41f91fe1cdde55bc0cc4b90412ec1238f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.5-py2-none-any.whl
Algorithm Hash digest
SHA256 5814a10cead3ae49fab32b5da42c42a87d4a048cba2eb0af587343dfcb8abf10
MD5 98b960090a85f4397a83f691114078b8
BLAKE2b-256 7ad858fa8ba3049175a0310847bf4bfddea7a054c1ddbf09de9f8ae5408a43d1

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