70 |
|
|
71 |
usingNormalBindings = 1 |
usingNormalBindings = 1 |
72 |
|
|
73 |
|
showHelp = 0 |
74 |
|
|
75 |
class Bindings(AbstractBinder): |
class Bindings(AbstractBinder): |
76 |
def keystroke(self, s): |
def keystroke(self, s): |
77 |
|
global showHelp |
78 |
# print "KEY: '%s'"%s |
# print "KEY: '%s'"%s |
79 |
if usingNormalBindings: |
if usingNormalBindings: |
80 |
if s == "q" or s == "Q": |
if s == "q" or s == "Q": |
81 |
System.exit(43) |
System.exit(43) |
82 |
elif s == "r" or s == "R": |
elif s == "r" or s == "R": |
83 |
loadScenes() |
loadScenes() |
84 |
|
elif s == "?": |
85 |
|
showHelp = 1-showHelp |
86 |
elif not globalkey(s): |
elif not globalkey(s): |
87 |
currentScene.key(s) |
currentScene.key(s) |
88 |
else: |
else: |
101 |
# w.registerBinder(b) |
# w.registerBinder(b) |
102 |
# def |
# def |
103 |
|
|
104 |
|
def addHelp(vs): |
105 |
|
help = currentScene.__class__.__doc__ + currentScene.key.__doc__ |
106 |
|
print "Doc: ",help |
107 |
|
|
108 |
class Show(AbstractShower): |
class Show(AbstractShower): |
109 |
def generate(self): |
def generate(self): |
110 |
# print "GENERATE" |
# print "GENERATE" |