def __init__(self, ctx): ctx.set_fill_rule(FILL_RULE_EVEN_ODD) self._gtk_ctx = ctx self._gstack = [] self._state = GState() GCanvas.__init__(self) GCanvasPaths.__init__(self)
def __init__(self): self._ns_path = NSBezierPath.bezierPath() self._ns_path.setWindingRule_(NSEvenOddWindingRule) self._stack = [] ctx = NSGraphicsContext.currentContext() ctx.setCompositingOperation_(NSCompositeSourceOver) GCanvas.__init__(self) self._printing = not ctx.isDrawingToScreen() self.initgraphics()