/usr/share/doc/xcircuit/examples/panzoom.py is in xcircuit 3.7.57.dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # The followin Python script replaces the zoom in/out operators
# with a pan function followed by a zoom. The range of the zoom
# can be adjusted by this method, too.
def panzoomin():
T=getcursor()
pan(T)
zoom(1.5)
def panzoomout():
T=getcursor()
pan(T)
zoom(0.66667)
unbind("Z", "Zoom In")
unbind("z", "Zoom Out")
bind("Z", "panzoomin")
bind("z", "panzoomout")
|