What options are there for displaying Python script output in UDE®?
Python script outputs in UDE® can be executed in different ways:
- Python script console (output when the script is stopped or terminated)
- Console View (immediate output using UDE® COM object model)
- Message View (immediate output using UDE® COM object model)
Examples
>>> # Output into the Python script console >>> print("Hello, Python !") >>> # Output into the Console view >>> UDEWorkspace.GetActiveCoreDebugger().ConOutput("Hello, Python !\n") >>> # Output into the Message view >>> UDEWorkspace.MessageLog.LogUser("Hello, Python !")
For more information about the usage of the UDE® COM object model see the hints in the FAQ How do I access to UDE® using the Python script interpreter.