示例#1
0
 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)
示例#2
0
 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)
示例#3
0
文件: Canvas.py 项目: tomihasa/pygui
 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()
示例#4
0
 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()