home.social

#pygobject — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pygobject, aggregated by home.social.

  1. 🐍 "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.

    🔗 events.gnome.org/event/259/con

    #Python #GNOME #PyGObject #FOSS

  2. 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

  3. Is there anyone who is interested in taking over maintenance of this lovely chess timer app for written in ? 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!

    gitlab.gnome.org/World/chess-c

  4. Awesome update and progress by GNOME GSoC student @atbrat on porting Workbench demos to Vala

    medium.com/@bharat.atbrat/gsoc

    Vala took the lead over Python 😉

    Thanks to @lw64 and @dimmednerd for reviewing

    #GNOME #GSoC #Vala #GTK #pygobject

  5. Is this Python diagnostics coming to Workbench 46 ? :python: :gnome:

    Why yes it is!

    Collaborative effort with @janvhs and @capypara 🙌

    We are using pylsp and Ruff.

    I'm also very excited to share that all 100+ demos have been ported to Python. Thanks to all contributors!

    #Python #gtk #pygobject #development #GNOME

  6. 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.
    gnome.pages.gitlab.gnome.org/p

  7. Python support just landed in Workbench 🎉

    :python: 🛠️ :gnome:

    Thanks and credits to @capypara !

    #Python #gtk #GNOME #pygobject #libadwaita

  8. GNOME Python binding 👣🐍

    PyGObject changes for GNOME 45:
    - drop GTK2 and Python 3.7 🧽
    - support Python 3.12 ✨
    - GTK4 and Libadwaita documentation 📚

    Info 👇
    release.gnome.org/45/developer

    CC @gnome

  9. I have to specify the name of signal handler of things from the #glade file.

    #pygobject

  10. 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.

    gitlab.gnome.org/GNOME/pygobje

    #Gentoo #Python

  11. #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.

    gitlab.gnome.org/GNOME/pygobje

    #Gentoo

  12. 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)

  13. Want to change a value in the row? store.set(iter, column_number, "new Value")

    #gtk #pygobject #python

  14. 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'.

    #gtk #pygobject #python

  15. 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 #pygobject #python

  16. Gtk.treeview needs Gtk.liststore/treestore. And those two need Gtk.CellRenderer to render datas.

    #gtk #pygobject #python

  17. To end the Gtk.main loop I have to quit it with Gtk.main_quit()

    #gtk #pygobject #python

  18. 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

  19. If you ever need to list or to select #GTK themes from a #Python / #PyGObject application, I made some helper functions to handle that:

    ➡️ gist.github.com/flozz/2560bcce

    I do not know why there is no built-in function to list themes 🤷‍♂️️

  20. 🔴️ Je suis en LIVE sur #Twitch :

    ➡️ 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 ! 😛️