#pygobject — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pygobject, aggregated by home.social.
-
🐍 "The State of Python in GNOME"
with Dan Yeaw at #GUADEC2025
📅 24 July 🕒 14:15 CEST 📍 Brescia⚙️ AsyncIO, girepository 2.0, real progress for Python in GNOME. Dan shows what’s new—and how to get involved.
-
You have a #Gtk4 application, written in python with #PyGObject, which use a template to build a window.
If you define a callback in code but you do not use it in template, an exception is raised.
If you use a callback in template which is not defined in code, no errors are reported.
But.
CSS classes are not applied to widgets. 🤷Look:
With the callback:
Without the callback:
I lost some good hours trying to find why my button was not styled.#Gtk 4.16.5
-
How to Create GUI Applications In #Linux Using #PyGObject
https://www.tecmint.com/pygobject-create-python-gui-application-linux/
-
Is there anyone who is interested in taking over maintenance of this lovely chess timer app for #GNOME written in #Python? It's pretty cool (and a member of GNOME Circle!), but its maintainer, the wonderful Clara Hobbs, is stepping away from the project. If this sounds interesting to you, reach out to them!
-
Awesome update and progress by GNOME GSoC student @atbrat on porting Workbench demos to Vala
https://medium.com/@bharat.atbrat/gsoc-2024-week-3-report-62a943e02442
Vala took the lead over Python 😉
Thanks to @lw64 and @dimmednerd for reviewing
-
Oh cool, the new #PyGObject documentation website actually lists known #Python #GTK apps around the #GNOME platform, & there are more than I thought, even among the new crop of #GTK4 + #libadwaita apps! Some of those I had never suspected were Python.
It's encouraging to see continued adoption of that elegant language. I want more apps to be written in Python+GTK, they lower the barrier to entry for newcomers in #opensource.
https://gnome.pages.gitlab.gnome.org/pygobject/#who-is-using-pygobject -
-
GNOME Python binding 👣🐍
PyGObject changes for GNOME 45:
- drop GTK2 and Python 3.7 🧽
- support Python 3.12 ✨
- GTK4 and Libadwaita documentation 📚Info 👇
https://release.gnome.org/45/developers/index.html#gnome-python#Gnome45 #Gnome #Python #PyGObject #FreeSoftware #ReleaseDay #Gtk4 #Libadwaita
CC @gnome
-
I have to specify the name of signal handler of things from the #glade file.
-
Eksperci Pythonowi & miłośnicy #PyPy: przydałaby nam się pomoc w ogarnięciu, dlaczego #pygobject się sypie z PyPy 3.10. Poziom abstrakcji w tym kodzie powoduje u mnie zawroty głowy.
-
#Python experts & #PyPy lovers: we'd use help figuring out why #pygobject is broken with PyPy 3.10. The level of abstraction in that package gives me a vertigo.
-
-
Dear #Python community,
how do you usually address „No module named gi”?
I have it time and again that #pygobject breaks for me and renders certain applications unusable (in this specific case: #kupfer)
-
GtkAppWindow.maximize() to maximize your window.
-
Want to change a value in the row? store.set(iter, column_number, "new Value")
-
What if you want to change a data inside the liststore? You can iterate through the rows inside the store, and treat it like any other list. So to get a data stored in 6th column, you can access it with row[5]. Although I'm not sure if you can change it's value with a simple assignment like row[5] = 'new val'.
-
To add data to liststore you can .append(data). Then choose the model from treeview to connect between treeview and the liststore. Then connect between cellrenderer to what row from the liststore you want to render.
Does my words even make sense? And here I thought that pygobject's documentation is hard to understand lol writing documentaries are hard.
-
Gtk.treeview needs Gtk.liststore/treestore. And those two need Gtk.CellRenderer to render datas.
-
To end the Gtk.main loop I have to quit it with Gtk.main_quit()
-
Things I don't like about #pygobject are:
1. Lack of documentation
2. Inability of IDEs to autocomplete and/or open the source code because of how it is generated -
If you ever need to list or to select #GTK themes from a #Python / #PyGObject application, I made some helper functions to handle that:
➡️ https://gist.github.com/flozz/2560bcced07abde5713d3eeae839bf60
I do not know why there is no built-in function to list themes 🤷♂️️
-
🔴️ Je suis en LIVE sur #Twitch :
➡️ https://www.twitch.tv/flozz_
Aujourd'hui on bosse sur la version #Windows de YOGA Image Optimizer !
Oui oui, on va bien faire du #Python / #GTK avec #pyGObject sous Windows, par ce que j'aime bien me compliquer la vie ! 😛️