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.16.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

PySide1_Customized_Window-1.16-py2.py3-none-any.whl (14.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.16.tar.gz
Algorithm Hash digest
SHA256 0cfdef6dc72968d44a0d7e5b37bc6761d92d2f14162d067fbb090d21e7f70eae
MD5 1a2d227601db2b8a1922c44c0bf21e5a
BLAKE2b-256 48613350915ee39fa411d4d982181411fb29bbdbb7935f0d963a92d1c914e580

See more details on using hashes here.

File details

Details for the file PySide1_Customized_Window-1.16-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PySide1_Customized_Window-1.16-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 05ad9006d8137d0f5aa1bc7231485bd95df0ad0c8d8b6a57effb78148cb3ac38
MD5 195f47f0b3e2fe6fb12dff4797209670
BLAKE2b-256 3e4cf7127a49f6c824be2ff9e8a3b0fd9ea0f7a6ee400d6bd90c0c1fa7040166

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