On Saturday, 31 October 2020 at 08:36:48 UTC, Barry Scott wrote:
> > On 29 Oct 2020, at 15:54, flaskee via Python-list <[email protected]>
> > 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
--
https://mail.python.org/mailman/listinfo/python-list