disable ctrl-P in idle?

timw.google tjandacw at yahoo.com
Tue Nov 11 13:29:23 EST 2008


On Nov 10, 10:35 pm, "drobi... at gmail.com" <drobi... at gmail.com> wrote:
> On Nov 10, 4:49 pm, RichardT <Richa... at invalid.invalid> wrote:
>
>
>
> > On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
>
> > <tjand... at yahoo.com> wrote:
> > >Is there a way to disable ctrl-P (print window) in IDLE? I'm editing
> > >some python code in IDLE and I keep hitting this by mistake from my
> > >years of emacs editing.
>
> > >Thanks in advance.
>
> > In Idle, select 'Configure IDLE..' from the options menu.
>
> > In the Options dialog, select the Keys tab.
>
> > Scroll down to the 'print-window' entry and select it.
>
> > Click the "Get New Keys For Selection" button.
>
> > Select the new key combination e.g. Shift+Ctrl+p and click OK button.
>
> > If you have not enter any custom keys before, you will get a prompt
> > for a Custom Key Set Name - enter a name and click OK.
>
> For the archive, since our hero prefers not to receive credit.
>
> > Ctrl+P should no longer send the window to the printer. On my system
> > (python 2.5.1 on XP) it now moves the cursor up a line for some reason
> > (deafult binding for the widget?)
>
> Cursor up is the default emacs binding for Ctrl+P so this will
> probably please the original poster (and me too!)

Wonderful!!!!! I remapped ctrl-N too while I was at it. Thanks!!!!

(and no help desk involvement either!)



More information about the Python-list mailing list