Hi, Matthias!
I tried to do such screenshots for multiple views opened in KLayout (with similar layer properties for each of them) and suggested workaround for 0.28.9 (pya.Application.instance().process_events()) and your fix in 0.28.12 work only f…
Hi!
* You could watch project on GitHub to get release updates.
* Release Notes clearly highlight bug fixes and enhancements, including those, related to performance.
Hi, Pascal!
I'm not sure if there are better ways to do so, but you could create new layer and copy only text shapes there, than remove old layer and set proper layer/datatype to new one.
Hi, Matthias!
Use case is to tweak default appearance of some of LayoutViewWidget widgets while processing MainWindow.on_current_view_changed/on_view_created. For example, hiding/showing cells and layers panels.
Sorry, my bad, I didn't notice that this is methods of LayoutViewWidget. But nevertheless, LayoutViewWidget stuff is referenced in LayoutView as part of internal API.
Hi, Kumaran!
See https://www.klayout.de/doc-qt5/programming/index.html and https://www.klayout.de/doc-qt5/code/index.html.
You could find a lot of examples on this forum.
Hi!
I think LayoutView.each_layer should work for you. I used LayoutView.begin_layers because of more complicated situations like layer properties deletion.
Hi!
If you want to hide entire layer content, you could find layer properties for given layer/datatype iterating LayoutView.begin_layers()/end_layers() and than set LayerProperties.visible to False.
Hi, Raji!
I think you need to create text labels in layout (see Layout, Shape (how to add) and LayerProperties (how to make layer visible)) and than use LayoutView.save_image or LayoutView.save_image_with_options.
Hi, Dick!
Our application generates session and sets fill-color property for text layers (text placed in dedicated layers) and this works for us. Also colors could be changed in Colors panel of Layer Toolbox.
Hi, Alexandre!
Is your script is .lym file? If so, it must be valid XML format and that assume encoding of special characters. Actually you could put body of script in separate Ruby file (so there are no need for special symbols encoding) and only …
Hi, Matthias!
I dug into code and found that MainWindow::current_view_changed generate event after title update, but LayoutView::active_cellview_changed emit title_changed event for empty title after active_cellview_changed_event.
By the word, Lay…
Hi, Matthias!
I embedded necessary data to layout's user properties and then change title in MainWindow.on_current_view_changed and CellView.on_active_cellview_changed handlers by calling same function. This works fine in former case, but not in la…