python Programming Glossary: do_it
How do I 'lock the keyboard' to prevent any more keypresses being sent on X11/Linux/Gnome? http://stackoverflow.com/questions/10740067/how-do-i-lock-the-keyboard-to-prevent-any-more-keypresses-being-sent-on-x11-li be done easily with a shell script using xinput # bin sh do_it # need error checking there. We should also restrict which device.. # you maybe don't want to exit in case of failure there. do_it 0 sleep 5 do_it 1 This logic is easily rewritable in Python... want to exit in case of failure there. do_it 0 sleep 5 do_it 1 This logic is easily rewritable in Python. If installing xinput..
function inside function http://stackoverflow.com/questions/4831680/function-inside-function style share improve this question def sum x y ... def do_it ... return x y ... return do_it ... a sum 1 3 a function do_it.. def sum x y ... def do_it ... return x y ... return do_it ... a sum 1 3 a function do_it at 0xb772b304 a 4 Is this what.. ... return x y ... return do_it ... a sum 1 3 a function do_it at 0xb772b304 a 4 Is this what you were looking for It's called..
|