Re: [Matplotlib-users] ginput is here! (for wx anyway)

2008-01-19 Thread Jack Sankey
Hello again, Just an update to the ginput() I'm using now. If you clicked really fast using the previous version, the event queue would fill up and you'd wind up getting extra clicks in your list. This version fixes that and adds the ability to (a) terminate the collection process with a right cli

[Matplotlib-users] ginput is here! (for wx anyway)

2008-01-18 Thread Jack Sankey
Hey guys, I'm not 100% sure if anyone has solved this problem, but I couldn't find it, so here it is. This is based on a thread by Gael Varoquaux about a year ago. The key element that was missing was the wx.Yield() command, which gives up control of the current thread so the rest of the world can