Skip to main content

Blur PySide, Tkinter, etc windows.

Project description

You can install it with pip:

python -m pip install BlurWindow

Preview:

https://i.imgur.com/sBNxXQE.png

Parameters/Functions:

#HWND = PID
#Acrylic = True/False #For Acrylic Design (lag WorkAround https://github.com/Peticali/PythonBlurBehind/blob/main/Examples%20MUST%20SEE/LagWorkAround.py)
#hexColor = Background color, False for nothing
#Dark = White icons
#QWidget = Your parent (for Mac)
#Material = https://developer.apple.com/documentation/appkit/nsvisualeffectmaterial

blur(HWND,hexColor=False,Acrylic=False,Dark=False)

#in windows 7 or older: (scroll down for image Acrylic True/False)
Win7Blur(HWND,Acrylic)

#in Linux (may not work for all distros, scroll down for image)
BlurLinux(HWND)

#in Mac (WIP):
MacBlur(QWidget,Material)

#NEW, Blur Windows Vista, 7, 8, 8.1, 10, 11, Linux, MacOS Auto
GlobalBlur(HWND,hexColor=False,Acrylic=False,Dark=False,QWidget=QWidget)

Example:

import sys
from PySide2.QtWidgets import *
from PySide2.QtCore import *

from BlurWindow.blurWindow import GlobalBlur


class MainWindow(QWidget):
    def __init__(self):
        super(MainWindow, self).__init__()
        self.setAttribute(Qt.WA_TranslucentBackground)
        self.resize(500, 400)

        GlobalBlur(self.winId(),Dark=True,QWidget=self)

        self.setStyleSheet("background-color: rgba(0, 0, 0, 0)")


if __name__ == '__main__':
    app = QApplication(sys.argv)
    mw = MainWindow()
    mw.show()
    sys.exit(app.exec_())

Windows 7/Vista:

https://i.imgur.com/CgFlbwt.png

Linux (Deepin):

https://i.imgur.com/h4TCByr.png

MacOS (BigSur):

https://i.imgur.com/qVSZnIw.png

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

BlurWindow-1.2.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BlurWindow-1.2.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file BlurWindow-1.2.1.tar.gz.

File metadata

  • Download URL: BlurWindow-1.2.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5

File hashes

Hashes for BlurWindow-1.2.1.tar.gz
Algorithm Hash digest
SHA256 7c7ff59f7ccb8c519e3a8d2733c436fe6695f9c69e5a78c729263d5b17288c89
MD5 04379b5475ec046e9465727cd8c659d5
BLAKE2b-256 544f8fb94f671b55560a462446d1cc6ea38052ba7db58ad9c7c8fbd7b5bddee4

See more details on using hashes here.

File details

Details for the file BlurWindow-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: BlurWindow-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5

File hashes

Hashes for BlurWindow-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d260100dc9646f630ca8eae8df89ff716af051d989004987f081b3d0cce3b61
MD5 93de38e943ddba8098a550d5a97f12eb
BLAKE2b-256 bac7930f269a9a660f09e1fadaa2c9b08ce5127a4ae9c32c7e82ce00a9799ee1

See more details on using hashes here.

Supported by

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