# HG changeset patch # User James Bergstra # Date 1273465608 14400 # Node ID 841dd63c76e05b42f5a61b38a17280b4f4b54b1c # Parent 62b65651f312e1f536a3488076b3caaae94cf813 added help message to glviewer diff -r 62b65651f312 -r 841dd63c76e0 pylearn/dataset_ops/glviewer.py --- a/pylearn/dataset_ops/glviewer.py Thu Apr 15 10:08:57 2010 -0400 +++ b/pylearn/dataset_ops/glviewer.py Mon May 10 00:26:48 2010 -0400 @@ -155,6 +155,7 @@ # dimensions global window + self.print_key_help() glutInit(sys.argv) # Select type of Display mode: @@ -366,6 +367,22 @@ elif args[0] == ESCAPE or args[0]=='q': sys.exit() + def print_key_help(self): + print "Program controls:" + print " q: quit" + print "" + print "Example controls:" + print " 0: reset to example 0" + print " j: next" + print " k: prev" + print "" + print "Frame controls (for movies)" + print " ): reset to frame 0" + print " J: forward" + print " K: backward" + print "Hint: Hold keys down for continuous play" + print "" + if __name__ == '__main__':