Commits

Anonymous committed 4cdf6b3

repair rulers: the view didn't _have_ rulers anymore.

Comments (0)

Files changed (1)

pyobjc/Examples/DotView/DotView.py

     def awakeFromNib(self):
         self.colorWell.setColor_(self.color)
         self.sizeSlider.setFloatValue_(self.radius)
+        scrollView = self.superview().superview()
+        scrollView.setHasHorizontalRuler_(1)
+        scrollView.setHasVerticalRuler_(1)
 
     def zoomIn_(self, sender):
         (x, y), (bw, bh) = self.bounds()