> button.on_click = sys.exit()

This will call sys.exit, and set button.on_click to its return value. 

I'm not quite sure how that part of the API works, but I'm pretty sure
you don't want the ():

button.on_click = sys.exit

Which will set on_click to sys.exit the function.
-- 
Theodore Reed <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to