From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Steele Scott Newsgroups: gmane.lisp.guile.user Subject: Using Guile in a wxWidgets app Date: Sun, 05 Feb 2006 10:26:16 +1030 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1139109140 10295 80.91.229.2 (5 Feb 2006 03:12:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2006 03:12:20 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Feb 05 04:12:16 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F5aJs-0002DY-ED for guile-user@m.gmane.org; Sun, 05 Feb 2006 04:12:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F5aN6-0007Ik-5c for guile-user@m.gmane.org; Sat, 04 Feb 2006 22:15:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F5XfB-00083y-1q for guile-user@gnu.org; Sat, 04 Feb 2006 19:21:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F5Xbo-0007YZ-G2 for guile-user@gnu.org; Sat, 04 Feb 2006 19:18:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F5XYN-00071d-1h for guile-user@gnu.org; Sat, 04 Feb 2006 19:14:56 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F5XXe-0004bz-Jv for guile-user@gnu.org; Sat, 04 Feb 2006 19:14:10 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1F5XV1-0002ii-7a for guile-user@gnu.org; Sun, 05 Feb 2006 01:11:27 +0100 Original-Received: from ppp155-170.lns3.adl2.internode.on.net ([59.167.155.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Feb 2006 01:11:27 +0100 Original-Received: from toojays by ppp155-170.lns3.adl2.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Feb 2006 01:11:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-user@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp155-170.lns3.adl2.internode.on.net User-Agent: KNode/0.10.1 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5129 Archived-At: I have written a small piece about embedding Guile in wxWidgets GUI program. You can read it at: Does anyone have any comments about it? In particular, I would appreciate feedback on the way I have wrapped the wxWidgets MessageBox() function. I used symbols instead of ORing bits for the modifier parameter, so that (message-box "Really quit?" "Quit?" 'yes/no 'question) is equivalent to wxMessageBox("Really quit?", "Quit?", wxYES_NO|wxICON_QUESTION). Also, in my MyFrame::OnQuit method, I create a variable in the Guile world, and then look it up again after calling the hook. Is this really necessary, or can I somehow bind *quit-do-close* directly to a SCM in MyFrame::OnQuit's stack frame, which Guile will modify directly, removing the need for the call to scm_variable_ref(scm_c_lookup("*quit-do-close*"))? cheers, John _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user