CVS: nondist/sandbox/magnus/tester2/tests test_button.py,NONE,1.1 test_label.py,NONE,1.1
Magnus Lie Hetland <[email protected]> Fri, 07 Feb 2003 18:14:22 -0800
| Newsgroups | gmane.comp.python.anygui.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/anygui/nondist/sandbox/magnus/tester2/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv18738/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)
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com