[Idle-dev] Re: keybindings

Kurt B. Kaiser kbk@shore.net
02 Dec 2002 14:09:45 -0500


Guido van Rossum <guido@python.org> writes:

> Note though that Alt-F2 is not the normal zoom (which does whatever
> the window manager does by default).  It is a special operation that
> keeps the width of the window default (normally 80 columns) but makes
> it maximal vertically.  This is useful to get an overview of a larger
> piece of code.  (I have no use for code wider than 80 columns. :-)

Right.

I have not been able to take the time to figure out how to get Tk to
return the coordinates of the area inside the docked panels.  

top.winfo_screenheight() doesn't seem to be the right thing to use as it
is the full height of the screen.

Stephen appears to have his button panel at the top, and set the height to
accomodate that, while I have mine at the bottom and so have locally
modified my ZoomHeight.py as follows:

      else:
!         #newy = 24
!         newy = 0
!         #newheight = newheight - 96
!         newheight = newheight - 88     

Anybody know how to do this correctly?


The current implementation allows keybinding sets to be configured in
config-keys.def, and there are separate bindings for Windows, Mac, and
Unix.  However, the IDLE "Extensions", such as ZoomHeight (!), are
defined in config-extensions.def and there is only one binding
available for all platforms, as far as I can see.

How does Alt-H sound for Zoom across the three platforms?

KBK