Skip to content

SManAT/PyStuff

Repository files navigation

PyStuff

some things markable for me to remember just look around, not everything is listed in this MD.

apps/*

usefull little tools

PyQT6/PySide6 dark Template

Read on here ...

Utilities

a lot of code snippets...

OpenCV

OpenCV Stuff you find here ...

QT/Notification

This is a QtDialog that simulates a notification on the screen.

How to use it

In your Main Module you have to do this

from Notification import Notification_Core, Notification

n = Notification_Core()
notification = Notification(n)
notification.showInformation("MyMessage")
notification.showError("MyMessage")
notification.showWarning("MyMessage")
notification.showSuccess("MyMessage")

To get an idea how it looks like Screenshot

QT/OverlayIcons

Place an overlay Icon (*.png) for a QPixmap at a specific position. You receive also an QPixmap that u can place somewhere in your QT App. What u nedd is OpenCV > sudo pip install opencv-python.

How to use it

self.cv = OpenCVLib()
icon = self.cv.readPNG("test/file_ok.png")
icon = self.cv.resizeTo(icon, 64, 64)
pixmap = self.cv.overlayIcon(self.ui.image.pixmap(), icon, 100, 10)
# write back
self.ui.image.setPixmap(pixmap)

To get an idea how it looks like Screenshot

QT/Splashscreen

Doing a Splashscreen, have look at SplashScreenTest.py

This stuff is provided as it is, gl & hf!

About

some things markable for me to remember

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages