[Anygui-checkins] CVS: nondist/sandbox/magnus/tester/tests test_button.py,NONE,1.1 test_label.py,NON
Brought to you by:
mlh
From: Magnus L. H. <ml...@us...> - 2003-02-08 02:01:28
|
Update of /cvsroot/anygui/nondist/sandbox/magnus/tester/tests In directory sc8-pr-cvs1:/tmp/cvs-serv14678/tests Added Files: test_button.py test_label.py Log Message: --- NEW FILE: test_button.py --- """ Tests the basic functionality of the Button class, as well as some simple event handling. """ from anygui import * after = ['label'] # Dummy dependency... def setup(frame): btn = Button(text='Click me!', x=50, y=50) def clicked(event): btn.text = 'Thank you.' link(btn, clicked) frame.add(btn) --- NEW FILE: test_label.py --- """ Tests the basic functionality of the Label class. """ from anygui import * after = [] def setup(frame): lbl = Label(text='Hello, world!', x=50, y=50) frame.add(lbl) |