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

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.

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


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to