Skip to content

Instantly share code, notes, and snippets.

View silverlyra's full-sized avatar

Lyra Naeseth silverlyra

View GitHub Profile
@silverlyra
silverlyra / calc_area.py
Created June 8, 2023 17:52 — forked from g2hollow/calc_area.lym
klayout macro qt area calculator
import pya
class AreaCalculator(pya.QDialog):
"""
This class implements a dialog for calculating area of shapes
in a layout. The calculator adds up shapes in the currently
selected cell and below.
"""
def button_clicked(self, checked):