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

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

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