Console API/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "{{VeryImportantMessage|''(Październik 2019)'' Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w [https://www.freecadweb.org/a...")
(Created page with "{{APIFunction|GetStatus|"Log" lub "Msg" lub "Wrn" lub "Err"|Uzyskaj status Log, Msg, Wrn lub Error dla obserwatora|ciąg komunikatu stanu}} {{APIFunction|PrintError|string|Wy...")
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{VeryImportantMessage|''(Październik 2019)'' Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w [https://www.freecadweb.org/api automatycznie generowana dokumentacja API], lub wygenerować dokumentację samodzielnie, śledząc dokument [[Source documentation/pl|Dokumentacja źródłowa]].}}
{{VeryImportantMessage|''(Październik 2019)'' Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w [https://www.freecadweb.org/api automatycznie generowana dokumentacja API], lub wygenerować dokumentację samodzielnie, śledząc dokument [[Source documentation/pl|Dokumentacja źródłowa]].}}


Ten moduł jest zawarty wewnątrz modułu FreeCAD i zawiera metody do wysyłania tekstu do konsoli wyjściowej i paska stanu programu FreeCAD. Wiadomości będą miały różny kolor, w zależności od tego czy będą to komunikaty, ostrzeżenia czy błędy.
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.


Przykład:
Example:
{{Code|code=
{{Code|code=
import FreeCAD
import FreeCAD
Line 11: 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" lub "Msg" lub "Wrn" lub "Err"|Uzyskaj status Log, Msg, Wrn lub Error dla obserwatora|ciąg komunikatu stanu}}
{{APIFunction|PrintError|string|Prints an error message to the output|nothing}}
{{APIFunction|PrintError|string|Wyświetla na wyjściu komunikat o błędzie| }}
{{APIFunction|PrintLog|string|Prints a log message to the output|nothing}}
{{APIFunction|PrintLog|string|Wyświetla na wyjściu komunikat dziennika| }}
{{APIFunction|PrintMessage|string|Prints a message to the output|nothing}}
{{APIFunction|PrintMessage|string|Wyświetla na wyjściu komunikat| }}
{{APIFunction|PrintWarning|string|Prints a warning to the output|nothing}}
{{APIFunction|PrintWarning|string|Wyświetla na wyjściu ostrzeżenie| }}
{{APIFunction|SetStatus|string|Set the stats for either Log, Msg, Wrn or Error for an observer| }}
{{APIFunction|SetStatus|string|Ustaw statystyki Log, Msg, Wrn lub Error dla obserwatora| }}


{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 12:52, 24 July 2021

(Październik 2019) Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w automatycznie generowana dokumentacja API, lub wygenerować dokumentację samodzielnie, śledząc dokument Dokumentacja źródłowa.

Ten moduł jest zawarty wewnątrz modułu FreeCAD i zawiera metody do wysyłania tekstu do konsoli wyjściowej i paska stanu programu FreeCAD. Wiadomości będą miały różny kolor, w zależności od tego czy będą to komunikaty, ostrzeżenia czy błędy.

Przykład:

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


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

Description: Uzyskaj status Log, Msg, Wrn lub Error dla obserwatora

Returns: ciąg komunikatu stanu

PrintError(string)

Description: Wyświetla na wyjściu komunikat o błędzie

Returns:

PrintLog(string)

Description: Wyświetla na wyjściu komunikat dziennika

Returns:

PrintMessage(string)

Description: Wyświetla na wyjściu komunikat

Returns:

PrintWarning(string)

Description: Wyświetla na wyjściu ostrzeżenie

Returns:

SetStatus(string)

Description: Ustaw statystyki Log, Msg, Wrn lub Error dla obserwatora

Returns: