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

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -