From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lee Thomas Newsgroups: gmane.lisp.guile.bugs Subject: bug#57379: GUI toolkit for Guile 3.0? Date: Wed, 24 Aug 2022 14:49:12 -0700 Message-ID: References: <87mtbtrffm.fsf@tsyesika.se> <20220824170318.70af5603@aicha> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000071996005e703a72d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11114"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jessica Tallon , 57379@debbugs.gnu.org To: David Pirotte Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Aug 24 23:50:10 2022 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQyGH-0002fG-61 for guile-bugs@m.gmane-mx.org; Wed, 24 Aug 2022 23:50:09 +0200 Original-Received: from localhost ([::1]:38316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQyGF-0006qt-UQ for guile-bugs@m.gmane-mx.org; Wed, 24 Aug 2022 17:50:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQyGA-0006qW-HC for bug-guile@gnu.org; Wed, 24 Aug 2022 17:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58589) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQyGA-0002gr-89 for bug-guile@gnu.org; Wed, 24 Aug 2022 17:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQyGA-0001rL-0H for bug-guile@gnu.org; Wed, 24 Aug 2022 17:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lee Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 24 Aug 2022 21:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57379 X-GNU-PR-Package: guile Original-Received: via spool by 57379-submit@debbugs.gnu.org id=B57379.16613777717105 (code B ref 57379); Wed, 24 Aug 2022 21:50:01 +0000 Original-Received: (at 57379) by debbugs.gnu.org; 24 Aug 2022 21:49:31 +0000 Original-Received: from localhost ([127.0.0.1]:48338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQyFf-0001qX-9u for submit@debbugs.gnu.org; Wed, 24 Aug 2022 17:49:31 -0400 Original-Received: from mail-lf1-f45.google.com ([209.85.167.45]:36612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQyFd-0001qK-Ry for 57379@debbugs.gnu.org; Wed, 24 Aug 2022 17:49:30 -0400 Original-Received: by mail-lf1-f45.google.com with SMTP id n15so4677207lfe.3 for <57379@debbugs.gnu.org>; Wed, 24 Aug 2022 14:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=1LuU7gySII56eb7q/GRYJEWIlemjj8fh0YhnHUgjpxY=; b=EfgJNCEMNW6AU2KdcoRQ6UKIHcRutzWmg1zu3mjuZJ/NFRPbcYWXKlNn8LafU6859z XFjYL4DRCq31SNMqLpaW91d+LQiU0KxN1CkCumdmNz01VWSbZ1v4iIar9gT8nocb0pfU twk8+Gr32+mjzTyego5C89VGVXPPuNGUVK2KbcQWcLKNDWDNe9yPHu56pamsDa3mF1VD qbZgQDvCRlwS8p7ZHdsZMgkClLU3cjJQM+7NdaSfiMrxw2/Rzkq9oiM+vYVMduMjRJj6 JT2GnHQDTR7BUR9tSYObbMNbDa1plksoMFaBYrUs98aULgNSaAEO/mvfpVc2ITyRUMRq RZzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=1LuU7gySII56eb7q/GRYJEWIlemjj8fh0YhnHUgjpxY=; b=Iea+wZP/Zcu5Aldd0OZQ+e3QmbqgkOVOSbtPHk4Rqzp5HiJ2Rgwfa7A+Q/wvawazu2 IXzaIWI0NyTrp+A+EOD55U0eMFk3PSith6DSnpFx+tcB7gdFksW/aa8SFx9jP7A5VP8s mMKg1cOv/0SvR9wRhAp+TsklN8fVcx16ATo7vkZZI1mfzkfSfxRAUu1lyRI0aguuwmSP 0owSJQlvvVzpKqy769VKNxm9b7RoDdslQEyBraMX0u1ZP03BAxuzAq5F/akI28D/I/8A eCX4CtVLwr4p9LfHhrRoWATdj+ewkiVKYhcquuK1ec04p555f+HrcHtyoqs4CyPnNxb9 9vIw== X-Gm-Message-State: ACgBeo353DZiw1HNeURCDpc5ImGjgYxexa/qejt/4ovpHUT7ETnm8qeT zmesGiQuUJDKxC/cSkzC3WaLZA5kaUxV+hZbtNIChNMV8/5n6Q== X-Google-Smtp-Source: AA6agR41Gmx3QAhA8FNrt65s/tI5vBpCXCLMYLHR2mJDP8538bFMPBvPjvmerOkNUWXkG1+Vq8LnUa0i6lflYgCsXSo= X-Received: by 2002:a05:6512:234a:b0:492:d80a:e570 with SMTP id p10-20020a056512234a00b00492d80ae570mr234122lfu.652.1661377763710; Wed, 24 Aug 2022 14:49:23 -0700 (PDT) In-Reply-To: <20220824170318.70af5603@aicha> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10328 Archived-At: --00000000000071996005e703a72d Content-Type: text/plain; charset="UTF-8" Thank you both!! Jessica, when I invoked the guix shell as you showed, it worked in that "(use-modules (gi))" succeeded. I need to learn more about including packages with the guix shell command. It's odd that I can get the latest guile to run without specifying it for guix, but I must have the other packages for gi to work .. . . David, I was able to install G-Golf via guix, and that also worked with the "use-modules" portion of your "Hello, World!" example. HOWEVER (alas), both examples fail on the "use-typelibs" line, with: Typelib file for namespace 'Gtk', version '4.0' not found In trying to resolve that error myself, I found that the guile manual has no entry for "use-typelib" in the Procedures Index. :-/ I'll submit that bug in a new email, after confirming there's not already a thread. Oh, and David, https://www.gnu.org/software/g-golf/index.html has a link for Typelib that 404s. I would suggest a fix, but I couldn't easily find one, sorry. But both of you have shown me that what I originally wanted to do is, in fact, doable. Thanks again! On Wed, Aug 24, 2022 at 1:03 PM David Pirotte wrote: > Hello, > > > > ... I'm trying to at least prototype a GUI in the same way that > > > in Python I can write "import gi" and proceed to create a GTK > > > window, add buttons and menubars and toolbars, etc. > > You might also try G-Golf - disclaimer, I am the G-Golf maintainer, I > was hoping/waiting that some answer(s) would point to both solutions, > but as it didn't happen, here is the link [1]. > > David > > [1] https://www.gnu.org/software/g-golf/index.html > --00000000000071996005e703a72d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you both!!

Jessica, when I invoke= d the guix shell as you showed, it worked in that "(use-modules (gi))&= quot; succeeded. I need to learn more about including packages with the gui= x shell command. It's odd that I can get the latest guile to run withou= t specifying it for guix, but I must have the other packages for gi to work= .. . .

David, I was able to install G-Golf via gu= ix, and that also worked with the "use-modules" portion of your &= quot;Hello, World!" example.

HOWEVER (alas), = both examples fail on the "use-typelibs" line, with:
Typelib file for namespace 'Gtk', version &#= 39;4.0' not found

In trying to resolve that e= rror myself, I found that the guile manual has no entry for "use-typel= ib" in the Procedures Index. :-/=C2=A0 I'll submit that bug in a n= ew email, after confirming there's not already a thread.



On Wed, Aug 24, 2022 at 1:03 PM David Pirotte= <david@altosw.be> wrote:
<= /div>
Hello,

> > ... I'm trying to at least prototype a GUI in the same way th= at
> > in Python I can write "import gi" and proceed to create= a GTK
> > window, add buttons and menubars and toolbars, etc.

You might also try G-Golf - disclaimer, I am the G-Golf maintainer, I
was hoping/waiting that some answer(s) would point to both solutions,
but as it didn't happen, here is the link [1].

David

[1]=C2=A0 =C2=A0 =C2=A0https://www.gnu.org/software/g-= golf/index.html
--00000000000071996005e703a72d--