SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] default "q" shortcut?

From: Jae-Joon L. <lee...@gm...> - 2009年10月22日 17:42:38
Can you post your patch so that others can review?
Regards,
-JJ
On Wed, Oct 21, 2009 at 3:23 AM, Georg Brandl <g.b...@gm...> wrote:
> Hi,
>
> one thing I missed when I switched from Gnuplot to matplotlib was that I
> can't press "q" to close a window but have to use the window manager; in
> one environment I work in that means I have to use the mouse to close a
> window.
>
> I made a custom key handler that does the following:
>
>    try:
>      event.canvas.manager.destroy()
>    except AttributeError:
>      pass
>
> which seems to work, at least with GtkAgg (I didn't venture to find out
> why the AttributeError is raised, it works in spite of that).
>
> Would it make sense to have that shortcut by default (and working for all
> windowing backends)?
>
> Georg
>
> --
> Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
> Four shall be the number of spaces thou shalt indent, and the number of thy
> indenting shall be four. Eight shalt thou not indent, nor either indent thou
> two, excepting that thou then proceed to four. Tabs are right out.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>

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 によって変換されたページ (->オリジナル) /