Mercurial > boomslang
diff pyntnclick/tools/utils.py @ 589:ebc48b397fd5 pyntnclick
Turn rect_drawer into a command line option
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 11 Feb 2012 17:07:52 +0200 |
parents | |
children | 4a933444c99b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyntnclick/tools/utils.py Sat Feb 11 17:07:52 2012 +0200 @@ -0,0 +1,12 @@ +# Misc utils I don't know where else to put + + +def list_scenes(get_initial_state): + """List the scenes in the state""" + state = get_initial_state() + print 'Available scenes are : ' + for scene in state.scenes: + print ' ', scene + print 'Available details are : ' + for detail in state.detail_views: + print ' ', detail