Console API: Difference between revisions
(Created page with 'This module is contained inside the FreeCAD module and contains methods to send text to FreeCAD's output console and status bar. The messages will have different color if they ar…') |
mNo edit summary |
||
Line 10: | Line 10: | ||
{{APIFunction|PrintWarning|string|Prints a warning to the output|nothing}} |
{{APIFunction|PrintWarning|string|Prints a warning to the output|nothing}} |
||
{{APIFunction|SetStatus|string|Set the stats for either Log, Msg, Wrn or Error for an observer| }} |
{{APIFunction|SetStatus|string|Set the stats for either Log, Msg, Wrn or Error for an observer| }} |
||
{{languages | {{es|Console_API/es}} }} |
|||
[[Category:API]] |
[[Category:API]] |
Revision as of 22:46, 22 August 2011
This module is contained inside the FreeCAD module and contains methods to send text to FreeCAD's output console and status bar. The messages will have different color if they are message, warning or error. Example:
import FreeCAD FreeCAD.PrintMessage("Hello World!\n")
Description: Get the status for either Log, Msg, Wrn or Error for an observer
Returns: a status string.
Description: Set the stats for either Log, Msg, Wrn or Error for an observer
Returns: