View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004090||FreeCAD||Feature||public||2019-08-12 12:56||2020-11-09 16:32|
|Summary||0004090: Provide direct access to task panel dialog from Python|
|Description||In Python, there's no way to provide direct access to the task panel. Typically, this can be managed easily enough by simply passing a reference to the form from the module that creates it to subsequent modules that may need it.|
However, the C++ API already provides this accessibility via Gui.Control().activeDialog(). Unfortunately, the Python wrapper implementation merely returns a boolean indicating whether or not the active dialog exists.
Suggest rewriting the Python Control.activeDialog() to return a reference to the active dialog (or None). This should pose little issue for existing code using Control.activeDialog() as any boolean test will still function properly.
Link to forum thread:
+1 for this feature request
I agree this would be best to have this implemented in
but maybe we can add this method instead :
to provide name and other interesting informations about the current activeDialog.