Matthais,
Idea is to get the newly created shapes , selected then process further in Ruby
I am following the example in this thread
https://www.klayout.de/forum/discussion/747/selecting-newly-created-shapes
Here is my current code for testing purp…
Matthias,
Update to process the vias this needs too be cleaned up with respect to the Global definitions and other things as well
Still Learning ... Baby Steps.
As its works like I want, there is probably a better way :)
Just a thought for all of…
Matthias,
Thanks for the valuable input,
I am new at Ruby and Python in general, 4 months, Klayout 3
25 plus years of Cadence Skill coding it's hard to unwire your
brain around an new tool and constructs, but I will get there.
Matthias,
Thanks for the comment, making progress with the plugin as suggested,
Question how do you pass mouse inputs to either Python or Ruby.
def box_finished(self, box):
# TODO: put in your code to do what you like to do with the box
#pya.…
Hmm,
I will figure it out, this current code works getting
mouse inputs , now to make it work with Klayout
simplicity is the way .
from ctypes import windll, Structure, c_long, byref class POINT(Structure): _fields_ = [("x&q…
Not Python but here is some Ruby, might be of help
ly = RBA::CellView.active.layout cell = RBA::CellView.active.cell layers = ly.layer_indexes.collect { |li| info = ly.get_info(li); [ info.layer, info.datatype, li ] }.sort# fetch display namesname…
Update thanks to Sebastian for multi-line input, slowly getting there , it's progress
# Enter your Python code here# importing libraries from pya import *import sys import tkinter as tkfrom tkinter import filedialogfrom tkinter.colorchooser import …
Thanks for your input Sebastian,
This works well in Spyder with python 3.7
not so much in Klayout
# importing libraries import pyaimport sys # creating a class # that inherits the QDialog class class Window(pya.QDialog): # Dialog constructor def __…
Matthias
The scope is too document all the gui inputs ,
documentation is sparse, and I think it will help.
I am stuck with the following from a previous post
I see how it get's the click but can't get the inputs from the text inputs too print out
or…
Matthias,
I have solved the Protocol module issue based on the
following https://pypi.org/project/typing-extensions/
1) download https://pypi.org/project/typing-extensions/#files
https://files.pythonhosted.org/packages/16/06/0f7367eafb692f73158e…
Matthias,
I have gotten this far and would like to load the following modules,
many thanks for your help
# some of these types are deprecated: https://www.python.org/dev/peps/pep-0585/from typing import Protocol, Dict, List, Iterator, Tuple, TypeVa…
Matthias
Thanks for the reply I am currently using Anaconda with python 3.8
So how exactly do I use the PyPI module with klayout ?
Another option is to use the klayout module from PyPI with your favorite Python. If you're happy with the database p…