Today I learned: building an application's GUI using Glade

twitter logo github logo ・1 min read

I've wrote a lot of Python's scripts for many task, such like web scraping or Telegram cool things. But until this week I never designed a non-web-based UI. I started using Glade and Gtk.

Just drag and drop some widgets into a GtkApplicationWindow, save it into your project's folder and load it.

    import gi
    gi.require_version('Gtk', '3.0')

    from gi.repository import Gtk

    class ButtonHander():
        # button action's code here!

    builder = Gtk.Builder()

    window = builder.get_object("mainWindow")


Because GUIs are cool!

twitter logo DISCUSS (2)
markdown guide

I use glade for my gui tools all the time. Itβ€˜s a real time saver. :)


Thanks for sharing! Glade looks pretty similar to page.sourceforge.net/ which is for Python.

Classic DEV Post from Sep 23 '19

Pay your rent from open source πŸ’Έ

Juanjo Salvador profile image
Debian user. Web developer who loves JavaScript and Python. Sometimes, the IT guy of your party. Give me a beer and we will be friends forever.

Sore eyes?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❀️