SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] ginput: blocking call for mouse input

From: Gael V. <gae...@no...> - 2008年01月31日 15:41:54
On Thu, Jan 31, 2008 at 08:20:37AM -0600, John Hunter wrote:
> As you know, this has been a much requested feature,
I know. I have wanted it pretty badly.
> and the hard part is to get something working across backends, which it
> looks like you've done.
Looks like it works OK. I would appreciate heads up from people who know
GTK, as I am not too sure of possibly garbbling the mainloop with my
kludge. But I have tested it quit extensively and it seems to work.
> I suggest a minor reorganization. Get rid of ginput.py altogether,
> add the BlockingMouseInput code to either backend_bases.py or
> figure.py. Make a figure.Figure.ginput method, so folks can use it
> outside of pylab, and then add a ginput method to pyplot.py which is a
> thin wrapper to the Figure.ginput method.
Yup, this seems like a good solution.
> If this seems like a good organization to you, I'll wait for a new
> patch and then contribute that.
Give me a few days, but it will come.
Cheers,
Gaël

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /