Skip to main content

A customized window based on PySide1.

Project description

PySide1-Customized-Window

简介 Introduction

本Python模块是PySideX-Customized-Window的PySide1分支,允许用户创建自定义非客户区窗口,非客户区使用PySide1绘制,支持移动、最小化、最大化、贴边自动布局、背景模糊等功能。只支持Windows、ReactOS、Wine平台。
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_()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PySide1_Customized_Window-1.11.tar.gz (12.9 kB view details)

Uploaded Source

Built Distributions

PySide1_Customized_Window-1.11-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

PySide1_Customized_Window-1.11-py2-none-any.whl (12.7 kB view details)

Uploaded Python 2

File details

Details for the file PySide1_Customized_Window-1.11.tar.gz.

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.11.tar.gz
Algorithm Hash digest
SHA256 73fddc9cbb26dbb0ce00aa2e32e3ffdf5e3009781e5348604ee02d81dc14d0b5
MD5 36b8430a51257e0164b976847d3ddba7
BLAKE2b-256 1674cfe481592fa40a0082dd0ec3a4c123520fca2f0a6644b899cb8e609650cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a287f01a11a949d8d0636fd05fa1a513e673ed7fa3360882e70e7a29f74f46
MD5 65509f62f0145da05483df3095da37b0
BLAKE2b-256 651f2795ed25387235dd80ddc6c5355c2da4aa7f13a97743c583187431227df0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.11-py2-none-any.whl
Algorithm Hash digest
SHA256 b12878ee235a821e65bb01b7d54f14deb2ec3fdc095ab38de6d3102c8767a17a
MD5 f3482e7f56004b5cfe7cdfd93b5b40ca
BLAKE2b-256 1f9c7ec80e2fa72ac9ba1e742f196b1e1a9647c7391e394895d4576166b4ca31

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