Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197881

Re: I need a basic tutorial for GUI creation using Cambalache

From Jon Ribbens <jon+usenet@unequivocal.eu>
Newsgroups comp.lang.python
Subject Re: I need a basic tutorial for GUI creation using Cambalache
Date 2026-08-12 22:23 +0000
Organization A noiseless patient Spider
Message-ID <slrn117psjb.8e8.jon+usenet@raven.unequivocal.eu> (permalink)
References <uantkm-bbj1.ln1@q957.zbmc.eu> <115ipm1$15btq$1@dont-email.me>

Show all headers | View raw


On 2026-08-12, Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
> 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"
>         )

Just to say that would obviously be a lot easier and cleaner like this:

ui = '''
    <?xml version='1.0' encoding='utf-8'?>
    <interface>
        <requires lib='gtk' version='4.0'/>
        <object class='GtkWindow' id='main'>
            <child>
                <object class='GtkGLArea' id='draw'/>
            </child>
        </object>
    </interface>
'''

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

I need a basic tutorial for GUI creation using Cambalache Chris Green <cl@isbd.net> - 2026-08-12 09:26 +0100
  Re: I need a basic tutorial for GUI creation using Cambalache Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-12 21:47 +0000
    Re: I need a basic tutorial for GUI creation using Cambalache Jon Ribbens <jon+usenet@unequivocal.eu> - 2026-08-12 22:23 +0000
    Re: I need a basic tutorial for GUI creation using Cambalache Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-13 08:30 +0000
  Re: I need a basic tutorial for GUI creation using Cambalache Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2026-08-24 10:30 +0200

csiph-web