Python Console panel


This panel is used to use IronPython to control CS+ and the debug tool via the command input method.

Figure A.1

Python Console Panel

 

The following items are explained here.

[How to open]

-

From the [View] menu, select [Python Console].

[Description of each area]

(1)

I/O area

Enter and run IronPython functions and control statements, and CS+ Python functions.

The results of function execution and errors are also displayed.

Use a print statement to display the result of IronPython functions.

[[File] menu (Python Console panel-dedicated items)]

The following items are exclusive for [File] menu in the Python Console panel (other items are common to all the panels).

Save Python Console

Saves the content displayed in the current panel in the last text file (*.txt) to be saved.

Note that if this item is selected first after the program starts, then the behavior is the same as selecting [Save Python Console As...].

Save Python Console As...

Opens the Save As dialog box to save the contents currently displayed on this panel in the designated text file (*.txt).

[Context menu]

Cut

Cuts the selected characters and copies them to the clip board.

Copy

Copies the selected characters to the clip board.

Paste

Inserts the contents of the clipboard into the caret position.

Select All

Selects all characters displayed on this panel.

Abort

Forces the currently running command to stop.

Clear

Clears all output results.

Python Initialize

Initializes Python.

Select Script File...

Opens the Select Script File dialog box to execute the selected Python script file.