Hello Matthias,
Thanks! I wish for the user to select a box and for the shapes within that box to pop up inside a second layoutview, and for the user to be able grab shapes and move them within this second layoutview. I think modes is what I was …
Hello Matthias,
I'm so sorry, I see what's happening now. So after running the script but before clicking the plugin button, Select is not claiming any of _clicked, _pressed, _released or _moved. But after clicking the plugin button and then re-c…
Hello Matthias,
Again, thanks for your response and your helpful code. Can you verify the following for me in this plugin?
* When you run the plugin, before clicking the button, the mouse_button_pressed_event is triggered as it should be (with pr…
That's a trouble that RecursiveShapeIterator has, that Matthias has addressed here. You can either check against the specific polygon the iterator delivers, or you can convert the whole layer into a region and call .interacting().
One trouble might be that a.p1 is a DPoint, not a Point. The difference is that the DPoint's coordinates are multiplied by the layout's database unit. Essentially there's a mismatch between the DPoint coordinates and the coordinates the Box wants …
The iterator is a RecursiveShapeIterator that contains, iterates over, all shapes in the cell on the layer index you provided. iter.at_end() detects whether there are no more shapes. If it's false, there is a shape that overlaps the box. If it's …
No problem!
Nothing is inherently displayed; all you've done is construct the iterator. Try calling iter.at_end(). If it's true, there is no shape; if it's false, there is a shape. You can use that boolean to continue as you wish.
The first parameter should be a layout, not a layoutview; and the second should be a cell, not a cellview. Try using pya.RecursiveShapeIterator(ly, cv.cell, li, test_box, True) instead
Thanks for your reply! My two questions are:
1. It says in the documentation that
(Quote)
However, when I open this new LayoutView in the pop-up window, there is no tool bar button to press, so the plugin never gets activated (and the Select tool …
I'm saying that the latest version of Klayout has dependencies that do not come standard in the Ubuntu18.04 apt repository, and I'm wondering if I have to install them manually, or if there's some other workaround that the builders use.