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.
Here?s 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: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 497099:26:57 |
| Calls: | 182 |
| Files: | 744 |
| D/L today: |
6 files (5,132K bytes) |
| Messages: | 73,558 |