View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004090 | FreeCAD | Feature | public | 2019-08-12 12:56 | 2021-02-06 06:49 |
Reporter | graffy | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Target Version | 0.20 | ||||
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. | ||||
Tags | GUI | ||||
FreeCAD Information | |||||
|
Link to forum thread: https://forum.freecadweb.org/viewtopic.php?p=326529#p326529 |
|
+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. |
|
This ticket has been migrated to GitHub as issue 5975. |