Thread Previous • Date Previous • Date Next • Thread Next |
See https://www.yade-dem.org/sphinx/prog.html#yade-class-base-doc-macro-family and attribute flags. You can specify that the normal will be (Attr::readonly|Attr::noSave). That way, it will be automatically accessible from python read-only, will be default-initialized properly, documented and not saved/loaded.Hi (Vaclav)How to add a read-only attrubute to a class in order to I can read it from python?
v.
Thread Previous • Date Previous • Date Next • Thread Next |