]> granicus.if.org Git - python/commitdiff
formatting
authorBarry Warsaw <barry@python.org>
Mon, 28 Sep 1998 21:01:55 +0000 (21:01 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 28 Sep 1998 21:01:55 +0000 (21:01 +0000)
Tools/pynche/StripViewer.py

index 575903be3769f7d28f3e33720f535854a39a82bf..261db344c3e8f9333daa8e50ceec0d007918338d 100644 (file)
@@ -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):