GUI: I am also looking for a nudge into the best (GUI) direction.

Betty Hollinshead lizzyhollins99 at gmail.com
Sat Oct 31 08:42:46 EDT 2020


On Saturday, 31 October 2020 at 08:36:48 UTC, Barry Scott wrote:
> > On 29 Oct 2020, at 15:54, flaskee via Python-list <pytho... at python.org> wrote: 
> > 
> > Hello! 
> > 
> > I've been reading the GUI toolkit posts. 
> > 
> > snip
> >
> Barry

Suggest you look at Glade and pure Python3
Works well on Linux (Fedora here)
No idea about other platforms

GUI Design: Glade
    GUI designer which produces an XML description of the target GUI (e.g. mainwin.glade)

Python3 code outline
    from gi.repository import GObject, Gio, Gdk, Gtk
    ...
    class AppWindow(object):
        def __init__():
            ...
            try:
               builder = Gtk.Builder.new_from_file("mainwin.glade")
               builder.connect_signals(self)
            except GObject.GError:
               print("Error reading GUI file")
               raise

There is identical support for using the Glade xml in a C application (but Python is easier!).
Liz


More information about the Python-list mailing list