Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours

(singke) #1
FIGURE 3.1 The Python v3 development environment, IDLE.

If you do not see the IDLE 3 icon on the desktop, check in the LXDE menu by clicking on the LXDE
Programs Menu icon and hovering your mouse pointer over the Programming menu option. You
should see the IDLE 3 icon there. If you don’t, go to the “Installing Python and Tools” section of this
hour to remedy this situation.


Checking for a Text Editor


Finally, you should ensure that there is a text editor, called nano, installed. You will learn later in this
hour exactly what a text editor is. Open the LXTerminal in the LXDE graphical interface. To see if
the nano text editor is installed, type nano -V and press Enter (see Listing 3.2).


LISTING 3.2 Checking the nano Version


Click here to view code image


pi@raspberrypi ~ $ nano -V
GNU nano version 2.2.6 (compiled 16:52:03, Mar 30 2012)
(C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
2008, 2009 Free Software Foundation, Inc.
Email: [email protected] Web: http://www.nano-editor.org/
Compiled options: --disable-wrapping-as-root --enable-color --enable-extra
--enable-multibuffer --enable-nanorc --enable-utf8
Free download pdf