docs.kde.org
Using KTurtle
Prev
Next

Chapter 2. Using KTurtle

Table of Contents

The Code Editor
The Inspector
The Canvas
The Menubar
The File Menu
The Edit Menu
The View Menu
The Tools Menu
The Settings Menu
The Help Menu
The Toolbar
The Statusbar

KTurtle Main Window

The main window of KTurtle has three main parts: the code editor (3) on the left where you type the TurtleScript commands, the inspector (4) which gives you information about variables when the program runs, and the canvas (5) on the right where the instructions are visualized. The canvas is the turtle's playground: it is on the canvas that the turtle actually moves and draws. The three other places on the main window are: the menu bar (1) from where all the actions can be reached, the toolbar (2) that allows you to quickly select the most used actions, and the statusbar (6) where you will find feedback on the state of KTurtle.

The Code Editor

In the code editor you type the TurtleScript commands. It has all of the features you would expect from a modern editor. Most of its features are found in the Edit and the Tools menus. The code editor can be docked on each border of the main window or it can be detached and placed anywhere on your desktop.

You have several ways to get some code in the editor. The easiest way is to use an already-made example: choose File->Examples in the File menu and select an example. The file example you choose will be opened in the the code editor, you can then use File->Run to run the code if you like.

You can open TurtleScript files by choosing File->Open....

The third way is to directly type your own code in the editor or to copy/paste some code from this user guide.

The cursor position is indicated in the statusbar, on the right with the Line number and Column number.

Prev
Next
Home


docs.kde.org