Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/l/i/Lightningbeam-HEAD/GUI/Cocoa/Pixmap.py   Lightningbeam(Download)
        NSGraphicsContext.__class__.saveGraphicsState()
        try:
            NSGraphicsContext.setCurrentContext_(ns_graphics_context)
            ns_tr.concat()
        finally:
    def with_canvas(self, proc):
        NSGraphicsContext.__class__.saveGraphicsState()
        NSGraphicsContext.setCurrentContext_(self._ns_graphics_context)
        try:
            canvas = Canvas()

src/k/a/kaas-HEAD/kaas/kpfutil.py   kaas(Download)
        context = NSGraphicsContext.graphicsContextWithBitmapImageRep_(im)
        context.setCompositingOperation_(NSCompositeSourceOver)
        NSGraphicsContext.setCurrentContext_(context)
 
        # Ask the implementation to render itself