FreeCADGui API: Difference between revisions
Renatorivo (talk | contribs) (translate) |
Renatorivo (talk | contribs) (Marked this version for translation) |
||
Line 1: | Line 1: | ||
<translate> |
<translate> |
||
<!--T:1--> |
|||
This module is the counterpart of the FreeCAD module. It contains everything related to the User interface and the 3D views. Example: |
This module is the counterpart of the FreeCAD module. It contains everything related to the User interface and the 3D views. Example: |
||
</translate> |
</translate> |
||
Line 7: | Line 8: | ||
<translate> |
<translate> |
||
<!--T:2--> |
|||
{{APIFunction|activateWorkbench|string|Activates a workbench by name|nothing}} |
{{APIFunction|activateWorkbench|string|Activates a workbench by name|nothing}} |
||
{{APIFunction|activeDocument| | |the active document or None if no one exists}} |
{{APIFunction|activeDocument| | |the active document or None if no one exists}} |
||
Line 25: | Line 27: | ||
{{APIFunction|updateGui| |Updates the main window and all its windows| }} |
{{APIFunction|updateGui| |Updates the main window and all its windows| }} |
||
<!--T:3--> |
|||
[[Category:API]] |
[[Category:API]] |
||
Revision as of 22:40, 15 November 2014
This module is the counterpart of the FreeCAD module. It contains everything related to the User interface and the 3D views. Example:
import FreeCADGui doc = FreeCADGui.activeDocument()
Description: Adds a FreeCAD command. String is the name of the command and object is a classname defining the command
Returns:
Description: Adds an icon as file name or in XPM format to the system
Returns:
Description: Adds a UI form to the preferences dialog. The first argument specifies the file name and the second specifies the group name
Returns:
Description: Adds a workbench under a defined name. The string is the workbench name and the object is a classname defining the workbench
Returns: