Blur PySide, Tkinter, etc windows.
Project description
You can install it with pip:
python -m pip install BlurWindow
Parameters:
#HWND = PID
#Acrylic = True/False #For Acrylic Design (lags)
#hexColor = Background color, False for nothing
#Dark = White icons
blur(HWND,hexColor=False,Acrylic=False,Dark=False)
#in windows 7 or older:
Win7Blur(HWND)
Example:
import sys
from PySide2.QtWidgets import *
from PySide2.QtCore import *
from BlurWindow.blurWindow import blur
class MainWindow(QWidget):
def __init__(self):
super(MainWindow, self).__init__()
self.setAttribute(Qt.WA_TranslucentBackground)
self.resize(500, 400)
hWnd = self.winId()
print(hWnd)
blur(hWnd)
self.setStyleSheet("background-color: rgba(0, 0, 0, 0)")
if __name__ == '__main__':
app = QApplication(sys.argv)
mw = MainWindow() #you can blur MainWindow too
mw.show()
sys.exit(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 Distribution
BlurWindow-1.0.9.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for BlurWindow-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eeee58a896f39482c595e1d777ea3833b75fd724a728ac4044e43fe5dc8c690 |
|
MD5 | 0e27ba660d65a645c69c38b3e9b67333 |
|
BLAKE2b-256 | bc44d0fc6207be9145b78989f7d531b5389b5eedca6ce205f135802236534ee1 |