Skip to content

J-CITY/pyqt5notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pyqt5 Notification

Tiny script for cross platform notification with pyqt5

It could use BlurWindow if you want blur background

Dependencies

PyQt5

python -m pip install PyQt5

If you want blur background

python -m pip install BlurWindow

Examples:

Imgur

# use for material ui widgets style
from qt_material import apply_stylesheet

app = QtWidgets.QApplication(sys.argv)

toast = Toast("SIMPLE TITLE", "SIMPLE MESSAGE", "images.png")

# init material ui style
apply_stylesheet(app, theme='dark_teal.xml')

toast.show()

sys.exit(app.exec_())

Imgur

from qt_material import apply_stylesheet

app = QtWidgets.QApplication(sys.argv)

toast = Toast()
toast.setTitle("Some Title")
toast.setMessage("This is notification for you")
toast.setImage("images.png")
toast.setTextAlign(TextAlign.LEFT)
toast.setUseBlurBg(True)
toast.setAnimPosOffset(30, 0)
toast.setAnimPosCurve(CurveType.IN_CUBIC)
toast.setAnimFadeCurve(CurveType.IN_CUBIC)
toast.config.BUTTONS["btn1"] = Button("Play")
toast.setSound("sound.wav")

apply_stylesheet(app, theme='dark_teal.xml')

toast.show()
sys.exit(app.exec_())

About

Tiny script for notification in pyqt5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages