Blur PySide, Tkinter, etc windows.
Project description
You can install it with pip:
python -m pip install BlurWindow
Preview:
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
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)
#NEW, Blur Windows Vista, 7, 8, 8.1, 10, 11, Linux auto
GlobalBlur(HWND,hexColor=False,Acrylic=False,Dark=False)
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)
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:
Linux (Deepin):
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 Distribution
BlurWindow-1.1.6.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for BlurWindow-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91262a5a266300389befa694688434faa820e58a79f127651dd0cba2b46bb590 |
|
MD5 | 8f5e419937e21c20a33f0d43db3fb1dc |
|
BLAKE2b-256 | 24a8fd883c7e8733938245be45751f14f5c1ee6a6b202a032e6aabcc325bf50e |