This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: how to avoid gtk-standalone-main in guile, when developping
- To: Ariel Rios <ariel at linuxppc dot org>
- Subject: Re: how to avoid gtk-standalone-main in guile, when developping
- From: David Pirotte <david at altosw dot be>
- Date: Sat, 01 Sep 2001 13:10:30 +0200
- CC: Neil Jerram <neil at ossau dot uklinux dot net>, "guile-user at gnu dot org" <guile-user at gnu dot org>, guile-gtk <guile-gtk at sourceware dot cygnus dot com>
- Organization: Alto Sotware (http://www.altosw.be)
- References: <3B8E09B3.955D25A6@altosw.be> <87u1yp2sl6.fsf@laruns.ossau.uklinux.net> <3B8F6383.E1C7FD39@altosw.be> <999269215.1502.15.camel@soleil>
Ariel Rios wrote:
> > I'd like to have (1) and (2):
> >
> > - launching guile
> > - using the main module (the one that uses many many others)
> > -->
> > | - 'launching manually' my app
> > | - killing the app-main-window to further develop/debug ...
> > | - 'manually' loading the gui-app-file for modified code
>
> I think you can do what you are trying it with:
>
> (define (window)
> (let ((window (gtk-window-new 'toplevel))
> (button (gtk-button-new)))
> (gtk-container-add window button)
> (gtk-widget-show-all window)
> (gtk-signal-connect button "clicked" (lambda () (gtk-widget-destroy
> window)(gtk-main-quit)))
> (gtk-main)))
it is a start, but when I launch (window) and while it is 'alive', i can
not eval anything in the listener
is there a way to have seperate repl?
thanks
david