View Issue Details

IDProjectCategoryView StatusLast Update
0004090FreeCADFeaturepublic2021-02-06 06:49
Reportergraffy Assigned To 
Status newResolutionopen 
Target Version0.20 
Summary0004090: Provide direct access to task panel dialog from Python
DescriptionIn 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.
FreeCAD Information



2019-08-13 13:01

reporter   ~0013422

Link to forum thread:


2020-11-09 16:32

developer   ~0014968

+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.


2022-03-03 13:55

administrator   ~0016809

This ticket has been migrated to GitHub as issue 5975.

Issue History

Date Modified Username Field Change
2019-08-12 12:56 graffy New Issue
2019-08-12 12:56 graffy Tag Attached: GUI
2019-08-13 13:01 graffy Note Added: 0013422
2020-11-09 16:32 rockn Note Added: 0014968
2021-02-06 06:49 abdullah Target Version => 0.20