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
blur(HWND,hexColor=False,Acrylic=False)
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.7.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for BlurWindow-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51fc3b04df7399de414229bbd4195da3c092c82d9877258d725f3210b0144bde |
|
MD5 | 965f01eae88851ceacc0ee58dbf3eab5 |
|
BLAKE2b-256 | e8a414e5907897fb07d5bb71cf618850a1abb93d3c1d854232f57188a7170722 |