Skip to content

Instantly share code, notes, and snippets.

Lesik

View GitHub Profile
@Lesik
Lesik / widget.py
Last active Feb 24, 2020
PyQt 5 pyqtProperty QSS example
View widget.py
#!/usr/bin/env python3
from PyQt5.QtCore import QRect, pyqtProperty
from PyQt5.QtGui import QPaintEvent, QPainter, QColor, QPen
from PyQt5.QtWidgets import QWidget
from PyQt5.QtCore import Qt
class Widget(QWidget):
"""
https://www.riverbankcomputing.com/static/Docs/PyQt5/qt_properties.html
You can’t perform that action at this time.