- Anonymous
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
vocx-fc | yorik | master | 2020-06-05 03:52:35 | master 40e707ef |
Changeset | Draft: organize the execute code of the Label in a function Instead of placing the entire code in the `execute` method, a `return_info` function is used to return the specific string that we wish to display depending on the `Target` object, the `LabelType`, and subelement in `Target`, if any. We also make the code more readable by using smaller variables, and avoiding notations with lists of lists (`variable[0][1][6:]`). |
|||
mod - src/Mod/Draft/draftobjects/label.py | Diff File |