Date: Sat, 02 Jul 2005 07:07:04 +0900 (JST) Message-Id: <20050702.070704.68546750.garrigue at kurims.kyoto-u.ac.jp> To: dmentre at linux-france.org Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: How to display and remove a window? From: Jacques GARRIGUE In-Reply-To: <878y0q43to.fsf at linux-france.org> References: <87r7enk0me.fsf at linux-france.org> <878y0q43to.fsf@linux-france.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: David MENTRE > I've tried: > > $ ledit lablgtk2 > Objective Caml version 3.08.3 > > # let window = GWindow.window () > ;; > val window : GWindow.window = > # window#show ();; > - : unit = () > > > But I'm unable to find the way to remove the window: > > # window#destroy ();; > - : unit = () > > does not remove the window from screen. :( Sure: the gtk main loop is not running. If you want to experiment with events, you should use lablgtk2 -thread. Jacques