Comment Comment by anewaccountname Python already has a solution for callbacks: @reg_callback(button.onclick) def callback(): do_stuff() parent anewaccountname 17 years ago