Re: [Matplotlib-users] giving parameters to func when using events

2006-12-08 Thread John Hunter
> "Martin" == Martin Richter <[EMAIL PROTECTED]> writes: Martin> My question now is: Is there a way to avoid using global Martin> variables but also avoid an object-oriented programming? Martin> In other words: Is it possible to pass e.g. a dictionary Martin> containing some in

[Matplotlib-users] giving parameters to func when using events

2006-12-08 Thread Martin Richter
Hello everyone, below is a little code - what it actually does is quite self-explanatory. (When clicking with left - draw a red circle. When the right button is pressed switch to a different mode. Now green squares are drawn and so on.) My question now is: Is there a way to avoid using global va