|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Re: Example program for Blox |
Date: | Fri, 11 Jul 2008 15:27:27 +0200 |
User-agent: | Thunderbird 2.0.0.14 (Macintosh/20080421) |
Canol Gokel wrote:
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 PaoloI 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.
No, that loop is just in the progress bar test, to modify the progress bar every 50 ms. The event loop is
BLOX.Blox dispatchEvents: win (see Gui class>>#test:)
It also gives an error like: test.st:3: key Gui not found
Just load it with PackageLoader fileInPackage: 'Blox' and go around in the class browser. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |