A customized window based on PySideX.
Reason this release was yanked:
Bug of background blurring effect of class 'BlurWindow' on 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for PySide6_Customized_Window-1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a63b6fb589a69a88d46fec6b428d08e9152157422ab2159d2441109d114c8ff9 |
|
MD5 | b78bb6015e731636e7f2bf6756ceb3de |
|
BLAKE2b-256 | fd8b84416a53daea277f251bb41ec469b7e807ff2edab8de595a1f08e475894e |
Hashes for PySide6_Customized_Window-1.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87078e32b8000faad94185dfd82fa82008a8c735cfd0724247842f5e5c26a772 |
|
MD5 | 7a69c2847b7da124b8f1e6a29a8f5d63 |
|
BLAKE2b-256 | 6d85aa4dc5d5c43b50a002ceb5098052922274188c3c878175d38c6806c4bafe |