Code: Select all
import golly as g while True: event = g.getevent() if event: g.show(event)
I saw two ambiguous details from the documentation:
1) Cross-platform scripting
One-line summary: Got 'key c altctrlshift' while expecting 'key c altcmdshift'.
I'm trying to assign a trigger action to each key (i.e. Ctrl+C -> Copy) and I was trying to make it cross-platform. The documentation of getevent() says that you could make it cross-platform by using 'cmd' and 'alt', which replaces 'ctrl' and 'option', respectively. But running the script above gives something like 'key c altctrlshift' instead of 'key c altcmdshift'. Does the cross-platform thing only apply to g.doevent() rather than g.getevent()?
2) The capital letters
One-line summary: Got 'key M none' instead of 'key m shift'.
This is not necessarily different from the docs but I think this is worth a mention. (Or is it different in different platforms?)
I'm on 32bit Linux and use Lubuntu. Thanks in advance.