![]()
#!/usr/bin/python
import sys
import subprocess
def intro():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0000.flv"
subprocess.call([player, fname])
menu()
def intro_add():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0100a.flv"
subprocess.call([player, fname])
menu()
def lesson1():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0101.flv"
subprocess.call([player, fname])
lesson1a()
def lesson1a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0102.flv"
subprocess.call([player, fname])
lesson1b()
def lesson1b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0103.flv"
subprocess.call([player, fname])
lesson1c()
def lesson1c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0104.flv"
subprocess.call([player, fname])
menu()
def lesson2():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0200a.flv"
subprocess.call([player, fname])
lesson2a()
def lesson2a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0201.flv"
subprocess.call([player, fname])
lesson2b()
def lesson2b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0202.flv"
subprocess.call([player, fname])
lesson2c()
def lesson2c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0203.flv"
subprocess.call([player, fname])
lesson2d()
def lesson2d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0204.flv"
subprocess.call([player, fname])
menu()
def lesson3():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0300a.flv"
subprocess.call([player, fname])
lesson3a()
def lesson3a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0301.flv"
subprocess.call([player, fname])
lesson3b()
def lesson3b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0302.flv"
subprocess.call([player, fname])
lesson3c()
def lesson3c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0303.flv"
subprocess.call([player, fname])
lesson3d()
def lesson3d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0304.flv"
subprocess.call([player, fname])
menu()
def lesson4():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0400a.flv"
subprocess.call([player, fname])
lesson4a()
def lesson4a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0401.flv"
subprocess.call([player, fname])
lesson4b()
def lesson4b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0402.flv"
subprocess.call([player, fname])
lesson4c()
def lesson4c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0403.flv"
subprocess.call([player, fname])
lesson4d()
def lesson4d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0404.flv"
subprocess.call([player, fname])
lesson4e()
def lesson4e():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0405.flv"
subprocess.call([player, fname])
menu()
def lesson5():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0500a.flv"
subprocess.call([player, fname])
lesson5a()
def lesson5a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0501.flv"
subprocess.call([player, fname])
lesson5b()
def lesson5b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0502.flv"
subprocess.call([player, fname])
lesson5c()
def lesson5c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0503.flv"
subprocess.call([player, fname])
lesson5d()
def lesson5d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0504.flv"
subprocess.call([player, fname])
menu()
def lesson6():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0600a.flv"
subprocess.call([player, fname])
lesson6a()
def lesson6a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0601.flv"
subprocess.call([player, fname])
lesson6b()
def lesson6b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0602.flv"
subprocess.call([player, fname])
lesson6c()
def lesson6c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0603.flv"
subprocess.call([player, fname])
lesson6d()
def lesson6d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0604.flv"
subprocess.call([player, fname])
menu()
def lesson7():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0700a.flv"
subprocess.call([player, fname])
lesson7a()
def lesson7a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0701.flv"
subprocess.call([player, fname])
lesson7b()
def lesson7b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0702.flv"
subprocess.call([player, fname])
lesson7c()
def lesson7c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0703.flv"
subprocess.call([player, fname])
lesson7d()
def lesson7d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0704.flv"
subprocess.call([player, fname])
menu()
def lesson8():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0800a.flv"
subprocess.call([player, fname])
lesson8a()
def lesson8a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0801.flv"
subprocess.call([player, fname])
lesson8b()
def lesson8b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0802.flv"
subprocess.call([player, fname])
lesson8c()
def lesson8c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0803.flv"
subprocess.call([player, fname])
lesson8d()
def lesson8d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0804.flv"
subprocess.call([player, fname])
lesson8e()
def lesson8e():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0805.flv"
subprocess.call([player, fname])
lesson8f()
def lesson8f():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0806.flv"
subprocess.call([player, fname])
menu()
def lesson9():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0900a.flv"
subprocess.call([player, fname])
lesson9a()
def lesson9a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0901.flv"
subprocess.call([player, fname])
lesson9b()
def lesson9b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0902.flv"
subprocess.call([player, fname])
lesson9c()
def lesson9c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0903.flv"
subprocess.call([player, fname])
lesson9d()
def lesson9d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0904.flv"
subprocess.call([player, fname])
lesson9e()
def lesson9e():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0905.flv"
subprocess.call([player, fname])
lesson9f()
def lesson9f():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_0906.flv"
subprocess.call([player, fname])
menu()
def lesson10():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_1000a.flv"
subprocess.call([player, fname])
lesson10a()
def lesson10a():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_1001.flv"
subprocess.call([player, fname])
lesson10b()
def lesson10b():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_1002.flv"
subprocess.call([player, fname])
lesson10c()
def lesson10c():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_1003.flv"
subprocess.call([player, fname])
lesson10d()
def lesson10d():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_1004.flv"
subprocess.call([player, fname])
lesson10e()
def lesson10e():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_1005.flv"
subprocess.call([player, fname])
lesson10f()
def lesson10f():
player = "/usr/bin/mplayer"
fname = "/home/david/Desktop/core_video/data/python_1006.flv"
subprocess.call([player, fname])
menu()
def menu():
print """
Python Fundamentals by Wesley J. Chun
Press A: Intro
Press B: About
Press C: Installation Press H: Loops and Conditionals
Press D: Getting Started Press I: Files and Input/Output
Press E: Syntax Basics Press J: Errors and Exceptions
Press F: Standard Types Press K: Functions and Functional Programming
Press G: Objects* and Memory Model Press L: *Object-Oriented Programming
Press X: Exit
"""
answer = raw_input("\nEnter > ")
answer = answer.lower()
if answer == "a":
intro()
elif answer == "x":
sys.exit()
elif answer == "b":
intro_add()
elif answer == "c":
lesson1()
elif answer == "d":
lesson2()
elif answer == "e":
lesson3()
elif answer == "f":
lesson4()
elif answer == "g":
lesson5()
elif answer == "h":
lesson6()
elif answer == "i":
lesson7()
elif answer == "j":
lesson8()
elif answer == "k":
lesson9()
elif answer == "l":
lesson10()
else:
print "oops"
menu()
David Abbott - david at linuxcrazy dot com