Skip to content

Instantly share code, notes, and snippets.

@KitWallace
Created August 18, 2012 00:24
Show Gist options
  • Save KitWallace/3383619 to your computer and use it in GitHub Desktop.
Save KitWallace/3383619 to your computer and use it in GitHub Desktop.
Walk through a menu with the presenter
#!/usr/bin/python
import sys
import speak
from menu import *
def visit(item) :
text = item.getAttribute('title')
speak.say(text)
print text
name = sys.argv[1]
menu = Menu(name)
menu.run(visit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment