2011-03-15 14:33:39 -06:00
|
|
|
from context import Context, ContextManager
|
|
|
|
|
|
|
|
cm = ContextManager("Memory.xml")
|
|
|
|
df = cm.get_single_context()
|
|
|
|
|
|
|
|
df.attach()
|
|
|
|
|
2011-03-29 09:08:08 -06:00
|
|
|
gui = df.gui
|
2011-03-15 14:33:39 -06:00
|
|
|
|
|
|
|
print "Hotkeys"
|
|
|
|
|
2011-03-29 09:08:08 -06:00
|
|
|
hotkeys = gui.read_hotkeys()
|
2011-03-15 14:33:39 -06:00
|
|
|
|
|
|
|
for key in hotkeys:
|
|
|
|
print "x: %d\ny: %d\tz: %d\ttext: %s" % (key.x, key.y, key.z, key.name)
|
|
|
|
|
|
|
|
df.detach()
|
|
|
|
|
|
|
|
print "Done. Press any key to continue"
|
|
|
|
raw_input()
|