Re-ran aclocal and automake on an updated system.
[xcircuit.git] / examples / panzoom.py
blob20587a26bf9286c7ce8ef5f766e6eb732166da58
1 # The followin Python script replaces the zoom in/out operators
2 # with a pan function followed by a zoom. The range of the zoom
3 # can be adjusted by this method, too.
5 def panzoomin():
6 T=getcursor()
7 pan(T)
8 zoom(1.5)
10 def panzoomout():
11 T=getcursor()
12 pan(T)
13 zoom(0.66667)
15 unbind("Z", "Zoom In")
16 unbind("z", "Zoom Out")
18 bind("Z", "panzoomin")
19 bind("z", "panzoomout")