unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* gtk-main and guile repl together
@ 2011-11-17 19:43 anoglad
  2011-11-17 19:49 ` Daniel Ridge
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: anoglad @ 2011-11-17 19:43 UTC (permalink / raw)
  To: guile-user

Hello people!

Is there a convenient way to run the gtk-main loop and the guile repl at
the same time? I'd like to be able to create widgets interactively.

Thank you very much!



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gtk-main and guile repl together
  2011-11-17 19:43 gtk-main and guile repl together anoglad
@ 2011-11-17 19:49 ` Daniel Ridge
  2011-11-17 19:51 ` Daniel Ridge
  2012-01-09 22:27 ` Andy Wingo
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Ridge @ 2011-11-17 19:49 UTC (permalink / raw)
  To: anoglad; +Cc: guile-user@gnu.org

I always solved this problem by first writing a gtk repl.

Sent from my iPhone

On Nov 17, 2011, at 2:43 PM, anoglad <anoglad@gmx.at> wrote:

> Hello people!
> 
> Is there a convenient way to run the gtk-main loop and the guile repl at
> the same time? I'd like to be able to create widgets interactively.
> 
> Thank you very much!
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gtk-main and guile repl together
  2011-11-17 19:43 gtk-main and guile repl together anoglad
  2011-11-17 19:49 ` Daniel Ridge
@ 2011-11-17 19:51 ` Daniel Ridge
  2012-01-09 22:27 ` Andy Wingo
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Ridge @ 2011-11-17 19:51 UTC (permalink / raw)
  To: anoglad; +Cc: guile-user@gnu.org

You can also use select to mix stdin together with the one-shot gtk iter function.

Sent from my iPhone

On Nov 17, 2011, at 2:43 PM, anoglad <anoglad@gmx.at> wrote:

> Hello people!
> 
> Is there a convenient way to run the gtk-main loop and the guile repl at
> the same time? I'd like to be able to create widgets interactively.
> 
> Thank you very much!
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gtk-main and guile repl together
  2011-11-17 19:43 gtk-main and guile repl together anoglad
  2011-11-17 19:49 ` Daniel Ridge
  2011-11-17 19:51 ` Daniel Ridge
@ 2012-01-09 22:27 ` Andy Wingo
  2 siblings, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2012-01-09 22:27 UTC (permalink / raw)
  To: anoglad; +Cc: guile-user

Hi,

On Thu 17 Nov 2011 20:43, anoglad <anoglad@gmx.at> writes:

> Is there a convenient way to run the gtk-main loop and the guile repl at
> the same time? I'd like to be able to create widgets interactively.

There are three options.

  * Run a special console REPL that integrates with the main loop.  See
    glib/gnome/gobject/event-repl.scm and glib/gnome/glib.scm in the
    guile-gnome-platform distribution.

  * Run a special graphical REPL with a soft port that runs the main
    loop.  See gtk/examples/repl.scm in the guile-gnome-platform
    distribution.

  * Run the normal REPL in a separate thread.  We don't make this very
    easy, currently, but it is possible to do:
    http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/gtk-thread-awareness
    http://blogs.operationaldynamics.com/andrew/software/java-gnome/thread-safety-for-java

Cheers,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-09 22:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17 19:43 gtk-main and guile repl together anoglad
2011-11-17 19:49 ` Daniel Ridge
2011-11-17 19:51 ` Daniel Ridge
2012-01-09 22:27 ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).