Scott David Daniels wrote:
> In particular, I thought about something like:
>
> @mousexy
> def OnRightClick(self, x, y):
> ...
You could somewhat generalize the idea -- have one argument in the wrapper
function provide the arguments missing in the wrapped one.
Here is a self-contained example,
Jack Diederich wrote:
On Wed, Mar 30, 2005 at 02:48:51PM -0800, Scott David Daniels wrote:
In particular, I thought about something like:
@mousexy
def OnRightClick(self, x, y):
...
so all event-responding methods tend to look like:
def OnRightClick(self, event):
x = event.Get