I need a callback function that is almost exactly the same for a series of gui events. The function will behave slightly differently depending on which event has called it.
there are actually no variables in the classic sense in Python, just names that have been bound by references to the applicable object. Even functions are some sort of object in Python, and lambdas do not make an exception to the rule :)