|
From: | Canol Gokel |
Subject: | [Help-smalltalk] Re: Example program for Blox |
Date: | Fri, 11 Jul 2008 13:18:45 +0000 (UTC) |
User-agent: | Loom/3.14 (http://gmane.org/) |
Paolo Bonzini <bonzini <at> gnu.org> writes: > > > You can look at packages/blox/tests/test.st > > It contains some functional tests to be used as > > Paolo > I looked at that but couldn't solve how to write the main loop which waits for events to occur. There is a loop like this in test.st: [win exists] whileTrue: [(Delay forMilliseconds: 50) wait. But it didn't behaved well while I was trying to create a simple window. Is there a more elegant way like: Tk().mainloop() in Python? It also gives an error like: test.st:3: key Gui not found while trying to run. I didn't try it on Linux though. A simple script which creates a window and a button in it which closes the window when pressed at the button would be much appreciated :) Then I would be able to find out most other things by investigating the class browser.
[Prev in Thread] | Current Thread | [Next in Thread] |