Open AIRCAP opened 5 days ago
Gui.Control.activeTaskDialog()
returns Task Dialog
as __repr__
for the class. It would be much better if it returned <Task Dialog Sketcher Edit>
for instance
Gui.ActiveDocument
return <GUI Document object at 0x5791140ea400>
as __repr__
, it would be much better if it returned <GUI Document MyNewTable>
Link to __repr__
method https://docs.python.org/3/reference/datamodel.html#object.__repr__
Is there an existing issue for this?
Problem description
As discussed in #development:
We also found out that
Gui.Control.activeDialog()
only returns true or false instead of a python representation of the dialog to interact . Instead there isGui.Control.activeTaskDialog()
but it has no__repr__
so you can't tell which one.This issue could act as a meta-issue for general improvements and housecleaning of the Python API in case more are found - in any way this is post 1.0 work and not super urgent.
Full version info
Subproject(s) affected?
Other (specify in description)
Anything else?
No response
Code of Conduct