Back to index

python3.2  3.2.2
Classes | Functions | Variables
turtledemo.__main__ Namespace Reference

Classes

class  DemoWindow

Functions

def getExampleEntries
def showDemoHelp
def showAboutDemo
def showAboutTurtle

Variables

tuple demo_dir = os.path.dirname(os.path.abspath(__file__))
int STARTUP = 1
int READY = 2
int RUNNING = 3
int DONE = 4
int EVENTDRIVEN = 5
tuple menufont = ("Arial", 12, NORMAL)
tuple btnfont = ("Arial", 12, 'bold')
tuple txtfont = ('Lucida Console', 8, 'normal')
tuple demo = DemoWindow()
 RUN = True

Function Documentation

Definition at line 26 of file __main__.py.

00026 
00027 def getExampleEntries():
00028     return [entry[:-3] for entry in os.listdir(demo_dir) if
00029             entry.endswith(".py") and entry[0] != '_']

Here is the caller graph for this function:

Definition at line 34 of file __main__.py.

00034 
00035 def showAboutDemo():
00036     view_file(demo.root, "About turtleDemo",
00037               os.path.join(demo_dir, "about_turtledemo.txt"))

Here is the call graph for this function:

Definition at line 38 of file __main__.py.

00038 
00039 def showAboutTurtle():
00040     view_file(demo.root, "About the new turtle module.",
00041               os.path.join(demo_dir, "about_turtle.txt"))

Here is the call graph for this function:

Definition at line 30 of file __main__.py.

00030 
00031 def showDemoHelp():
00032     view_file(demo.root, "Help on turtleDemo",
00033               os.path.join(demo_dir, "demohelp.txt"))

Here is the call graph for this function:


Variable Documentation

tuple turtledemo.__main__.btnfont = ("Arial", 12, 'bold')

Definition at line 23 of file __main__.py.

Definition at line 247 of file __main__.py.

tuple turtledemo.__main__.demo_dir = os.path.dirname(os.path.abspath(__file__))

Definition at line 14 of file __main__.py.

Definition at line 19 of file __main__.py.

Definition at line 20 of file __main__.py.

tuple turtledemo.__main__.menufont = ("Arial", 12, NORMAL)

Definition at line 22 of file __main__.py.

Definition at line 17 of file __main__.py.

Definition at line 248 of file __main__.py.

Definition at line 18 of file __main__.py.

Definition at line 16 of file __main__.py.

tuple turtledemo.__main__.txtfont = ('Lucida Console', 8, 'normal')

Definition at line 24 of file __main__.py.