When a button is pushed and "draw_" is called, I expect drawRect_ to be called through self.setNeedsDisplay_, but this doesn't work. Why is that? Thanks. Tom Elliott # inherits from NSView via the nib class MyView(NibClassBuilder.AutoBaseClass): def initWithFrame_(self, frame): super(MyView, self).initWithFrame_(frame) return self def drawRect_(self, rect): NSLog("drawRect_") NSColor.redColor().set() NSRectFill(self.bounds()) def draw_(self,sender): NSLog("draw_") self.setNeedsDisplay_(True) |
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig