Skip to content

Instantly share code, notes, and snippets.

View klayoutmatthias's full-sized avatar

Matthias Köfferlein klayoutmatthias

View GitHub Profile
@klayoutmatthias
klayoutmatthias / gist:98596452e9ad695973095c189b5f3a0c
Last active August 20, 2022 13:15
Display Layout, KLayout experimenting
import pya
global display
class Display(object):
def __init__(self):
self.view_index = None
def show(self, layout):
@klayoutmatthias
klayoutmatthias / gist:6552da2bec4a9f3f71b867c045544db0
Last active August 20, 2022 12:42
Safe canvas, KLayout experimenting
import pya
global canvas
class Canvas(object):
def __init__(self, layer = pya.LayerInfo(1, 0)):
self.layer = layer
def _layout(self):