I'm sort of aware that Cambalache creates an XML file that
represents the GUI and that XML file has to be processed somehow (by GTKBuilder?) to make a running GUI program.
HererCOs an example snippet from my limited dabbling with GTK4 so far:
ui = \
(
"<?xml version='1.0' encoding='utf-8'?>\n"
"<interface>\n"
" <requires lib='gtk' version='4.0'/>\n"
" <object class='GtkWindow' id='main'>\n"
" <child>\n"
" <object class='GtkGLArea' id='draw'/>\n"
" </child>\n"
" </object>\n"
"</interface>\n"
)
Yeah, it seems in GTK4 you no longer have public access to the
individual widget-creation calls.
I am a retired software engineer with a background in assembler, C and
C++.
I now dabble (mostly for my own amusement) in various bits and pieces,
mostly in Python nowadays. I have written quite a lot of Python
command line programs to run in a terminal. I have also written a
couple of simple Python GUI programs using PyGObject and Gtk. This is
all on Debian/Linux.
I want to go a bit further and it appears that the most obvious next
step is to use Cambalache which has taken over from Glade as the
default GUI builder for Gnome/GTK.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 53:29:59 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,430 |