Displaying 2 results from an estimated 2 matches for "anymodifier".
2010 Jun 15
1
Fwd: Re: "Graphics history" in UNIX
...quick task to program Function keys for this purpose.
I uselessly spent time messing with a "<home>.initrc " file.
The only solution I found is to write the functions names, via Bash
menu Settings>ModifyProfile>Input,
in the "Output" column of a new Console:
F10+AnyModifier : source("/.../GraphicsHistorySubstitute.R")' ##
initialise
F10-AnyModifier : rp$record()\n ## record current plot'
F11-AnyModifier : rp$showPrevious()\n ## show previous recorded plot'
F11+AnyModifier : rp$showNext()\n ## show next recorded plot...
2011 Apr 07
0
python for game menus needing mouse but with mwo=force
...e == key_exit:
exit()
else :
print "keycode = " , keycode
start = time.time()
d = display.Display()
s = d.screen()
root = s.root
# catch keyPress events
root.change_attributes(event_mask = X.KeyPressMask)
for keycode in keys:
root.grab_key(keycode, X.AnyModifier, 1,X.GrabModeAsync, X.GrabModeAsync)
while True :
root.warp_pointer(mouse['x'],mouse['y'])
d.sync()
elapsed = (time.time() - start)
event = root.display.next_event()
handle_event(event)