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.



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

Reply via email to