Console API/ro: Difference between revisions

From FreeCAD Documentation
(Created page with "Exemplu:")
(Updating to match new version of source page)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{VeryImportantMessage|(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation], or generate the documentation yourself, see [[Source documentation|Source documentation]].}}

Acest modul este conținut în modulul FreeCAD și conține metode de trimitere a textului la consola de ieșire FreeCAD și la bara de stare. Mesajele vor avea o culoare diferită, funcție de tipul lor : mesaje, avertismenter sau erori.
Acest modul este conținut în modulul FreeCAD și conține metode de trimitere a textului la consola de ieșire FreeCAD și la bara de stare. Mesajele vor avea o culoare diferită, funcție de tipul lor : mesaje, avertismenter sau erori.


Line 9: Line 11:




{{APIFunction|GetStatus|"Log" or "Msg" or "Wrn" or "Err"|Get the status for either Log, Msg, Wrn or Error for an observer|a status string.}}
{{APIFunction | GetStatus | "Log" sau "Msg" sau "Wrn" sau "Err" | Obțineți starea fie pentru Log, Msg, Wrn sau Error pentru un observator |. Un șir text de stare}}
{{APIFunction|PrintError|string|Prints an error message to the output|nothing}}
{{APIFunction | PrintError |șir string | Imprimă un mesaj de eroare la ieșirea | nimic}}

{{APIFunction|PrintLog|string|Prints a log message to the output|nothing}}
{{APIFunction|PrintMessage|string|Prints a message to the output|nothing}}
{{APIFunction | PRINTLOG | șir text | Tipărește un log de mesaje la ieșire | nimic}}

{{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 | PrintMessage | șir text | Imprimă un mesaj la ieșire nimic}}

{{APIFunction | PrintWarning | șir text | Imprimă un avertisment la ieșirea | nimic}}


{{APIFunction | SetStatus | șir text | Setați stările fie pentru Log, Msg, Wrn, sau Error pentru un observator |}}
[[Category:API]]


{{Userdocnavi{{#translation:}}}}
[[Category:API{{#translation:}}]]
[[Category:Poweruser Documentation{{#translation:}}]]
{{clear}}
{{clear}}

Latest revision as of 20:55, 27 February 2020

(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the autogenerated API documentation, or generate the documentation yourself, see Source documentation.

Acest modul este conținut în modulul FreeCAD și conține metode de trimitere a textului la consola de ieșire FreeCAD și la bara de stare. Mesajele vor avea o culoare diferită, funcție de tipul lor : mesaje, avertismenter sau erori.

Exemplu:

import FreeCAD
FreeCAD.Console.PrintMessage("Hello World!\n")


GetStatus ( "Log" sau "Msg" sau "Wrn" sau "Err" )

Description: Obțineți starea fie pentru Log, Msg, Wrn sau Error pentru un observator

Returns: . Un șir text de stare

PrintError (șir string )

Description: Imprimă un mesaj de eroare la ieșirea

Returns: nimic

PRINTLOG ( șir text )

Description: Tipărește un log de mesaje la ieșire

Returns: nimic

PrintMessage ( șir text )

Description: Imprimă un mesaj la ieșire nimic

Returns: {{{4}}}

PrintWarning ( șir text )

Description: Imprimă un avertisment la ieșirea

Returns: nimic

SetStatus ( șir text )

Description: Setați stările fie pentru Log, Msg, Wrn, sau Error pentru un observator

Returns: