Console API/fr: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Exemple:") |
Renatorivo (talk | contribs) (Created page with "Category:API/fr") |
||
Line 15: | Line 15: | ||
{{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| }} |
||
[[Category:API]] |
[[Category:API/fr]] |
||
{{clear}} |
{{clear}} |
Revision as of 19:51, 16 November 2014
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.
Exemple:
import FreeCAD FreeCAD.Console.PrintMessage("Hello World!\n")
Description: Get the status for either Log, Msg, Wrn or Error for an observer
Returns: a status string.