View Issue Details

IDProjectCategoryView StatusLast Update
0004090FreeCADFeaturepublic2019-08-13 13:01
ReportergraffyAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version0.19 
Target VersionFixed in Version 
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.
TagsGUI

Activities

graffy

2019-08-13 13:01

reporter   ~0013422

Link to forum thread:

https://forum.freecadweb.org/viewtopic.php?p=326529#p326529

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