summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/StripViewer.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-09-28 21:01:55 (GMT)
committerBarry Warsaw <barry@python.org>1998-09-28 21:01:55 (GMT)
commit5177c4841123c54879d86dfa32479543856146b4 (patch)
tree6caafffade3b27849270127d240853a56fc50349 /Tools/pynche/StripViewer.py
parent6a3ea7468e34aef214ef67a2669f23902c138633 (diff)
downloadcpython-5177c4841123c54879d86dfa32479543856146b4.zip
cpython-5177c4841123c54879d86dfa32479543856146b4.tar.gz
cpython-5177c4841123c54879d86dfa32479543856146b4.tar.bz2
formatting
Diffstat (limited to 'Tools/pynche/StripViewer.py')
-rw-r--r--Tools/pynche/StripViewer.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/pynche/StripViewer.py b/Tools/pynche/StripViewer.py
index 575903b..261db34 100644
--- a/Tools/pynche/StripViewer.py
+++ b/Tools/pynche/StripViewer.py
@@ -101,10 +101,15 @@ class StripWidget:
generator = None,
axis = None,
label = ''):
+ # instance variables
+ self.__generator = generator
+ self.__axis = axis
+ assert self.__axis in (0, 1, 2)
+ self.__update_while_dragging = 0
# the last chip selected
self.__lastchip = None
self.__sb = switchboard
-
+
canvaswidth = numchips * (chipwidth + 1)
canvasheight = chipheight + 43 # TBD: Kludge
@@ -153,11 +158,6 @@ class StripWidget:
chipx = self.__arrow_x(len(chips) - 1)
self.__rightarrow = RightArrow(canvas, chipx)
- self.__generator = generator
- self.__axis = axis
- assert self.__axis in (0, 1, 2)
- self.__update_while_dragging = 0
-
# Invoked when one of the chips is clicked. This should just tell the
# switchboard to set the color on all the output components
def __set_color(self):