Hardware Reference
In-Depth Information
The first time IDLE is run, your computer may display a message asking for your
permission to run the program, or to allow IDLE to access the network. This is
fine; just agree to it.
Once the Python Shell window has loaded, you can create new programs in IDLE. The
program you are going to create here won't do anything fancy. Just as computer pro-
grammers always start by writing a “hello world” program, you're now going to create a
Hello Minecraft World program to check that everything is properly installed on your
computer. Here's how:
Future adventures will tell you to create a new program and save program to
MyAdventures . You can refer back to this section if you ever need a reminder
of how to create a new program.
1. Create a new file by clicking File New File on the IDLE menu. (Note that on a
Raspberry Pi, “New File” may be called “New Window”.)
2. Save the file to the MyAdventures folder by clicking File Save on the IDLE edi-
tor menu.
3. Select the MyAdventure folder:
On a Raspberry Pi: Select /home/pi in the Directory drop-down list and
double-click MyAdventures on the folder browser.
On a PC: Click Desktop on the navigation pane on the left, double-click
AdventuresInMinecraft on the folder explorer and then double-click
MyAdventures .
On a Mac: Click Desktop on the folder browser, click Adventures
InMinecraft and then click MyAdventures .
4. Next you need to give your new file a name. Type in the filename
HelloMinecraftWorld.py and click Save. The .py added to the end of the
file tells your computer that the file is a Python program.
Search WWH ::




Custom Search