<div><br></div><div><div><div class="gmail_quote">2011/3/31 Diogo F. S. Ramos <span dir="ltr"><<a href="mailto:diogofsr@gmail.com">diogofsr@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
I am a really gambit newbie and I was toying with the idea of creating a<br>
GUI application with gambit.<br>
<br>
Is there some GUI library? By that I mean a widget collection library<br>
like GTK+ or QT.<br></blockquote><div><br></div><div><div class="gmail_quote">You can check Jazz Scheme, it's based on Gambit, multiplatform, and has a GUI library.</div><div class="gmail_quote"></div></div><div class="gmail_quote">

<br></div>As regards GTK or QT, you plug them in via the FFI. You can both make calls to C and get callbacks from C using it. Check in the Dumping grounds on the wiki if there's any FFI integration for them, alternatively take inspiration from one that already exists for another Scheme implementation while implementing your own for Gambit.</div>

<div class="gmail_quote"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">As I didn't find one</blockquote><div><br></div><div>
(Above)</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I think it is probably a good idea to use C to<br>
drive the GUI part and gambit for the rest.<br></blockquote><div><br></div><div>If by GUI part you mean an UI library such as GTK, sure.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

What would be the right way to do it?<br>
<br>
Also, I would like to use GTK+, as I'm experienced with it, but it has<br>
some requirements, like having control of the main thread and never<br>
returning. Would this be a problem?<br></blockquote><div><br></div><div>If your app doesn't need to do anything in the background while GTK is having the control, then no. Otherwise, also no, but you'd need to make an own OS thread or process for GTK's  thread.</div>

<div><br></div><div>Kind regards,</div><div>Mikael</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">--<br>
Diogo F. S. Ramos<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</font></blockquote></div><br></div></div>