You can find here some examples for Python3 + GTK 4. I had to do quite a bit research to find the elements from the list below. Mostly, it was a deep-dive into the docs, their Gitlab and StackOverflow.
Sadly, the documentation is rare and there are only a few examples for Python out there, or if they are there, they are mostly utter rubbish and probably for GTK 3.
I hope my repository helps you to drastically reduce time for searching and reading docs. <3
- How to use MessageBoxes and listen to inputs given? (ResponseTypes + GTK.Dialog)
- My App should have a App Icon! How to add it?
- How to handle windows close-request and prevent the Event from destroying the Window?
- (Custom) Signals and Notifications in GTK 4 - Let the world burn!
- That damn Window spawns randomly, how to fix screen coordinates?
- How to use the fucking GTK4.DropDowns? Part 1
- Less Code, better DropDowns? Click here! Part 2
- How to use Notifications and Notif. Icons in GTK 4?