EventHandler, event, delegate based programming in Python any example would appreciate? -
Actually I'm a C # developer, I know the method of C #, event in fact, representative, representative, even ..
But what is the best way to apply it to Python?
I think you should be able to use the function:
def do_work_and_notify (on_done): // do work on_done () def send_email_on_completion (): email_send ('joe@example.com', 'you are') do_work_and_notify
Comments
Post a Comment