This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how to avoid gtk-standalone-main in guile, when developping


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]