Re: keyboard_handler help?

2020-08-27 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: keyboard_handler help? 2 blank lines after any top-level class or function. 1 blank line before anything that's inline.I run everything through flake8. After you've done being pissed off with it, and gotten used to knowing what it wants you to do, you can write clean code w

Re: keyboard_handler help?

2020-08-27 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: keyboard_handler help? I'll have to take a look at that module. Thanks! URL: https://forum.audiogames.net/post/564901/#p564901 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audio

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: keyboard_handler help? @9Blank lines separate ideas, like how paragraphs do in normal English.  If you spend time with code not written by blind people, you'll get a good feel for that just by reading it, but it's actually even normal to put blank lines in the middle of fu

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: keyboard_handler help? @8, Alright, I'll try that. Thank you. And yeah, I really do need to get used to my indent. That in of itself shouldn't be hard. Something I will most likely have a hard time getting used to are all the blank lines Python makes you put. Wel, PEP-8 do

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: keyboard_handler help? Ah. I see the problem now.  You're calling your functions and assigning the result to callback, not assigning the function you want called to callback. Drop the extra parens and it probably works.  Would have been helpful to know that it was actually

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: keyboard_handler help? Hmm maybe it is a code issue... Trying another module, system_hotkey and it's doing the same, thinking I pressed the keys when I didn't... Here's the full code.import sys import accessible_output2 import accessible_output2.outputs from syste

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: keyboard_handler help? Yes, the goal is to register global hotkeys. I know the WinAPI has functions for this, but from when I tried them, granted that was in PureBasic but it's the same general API, it was a pain. I guess I'll be doing some Googling, then.

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: keyboard_handler help? I think the goal is to register global hotkeys, either app-wide or system-wide.  If it's wx, I believe there are already facilities for app-wide in it.  I can't necessarily give you alternatives here: for app-wide I'd probably just throw it toget

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : haily_merry via Audiogames-reflector
Re: keyboard_handler help? Lucia's keyboard handler uses pygame under the hood, and should be good enough for your needs. URL: https://forum.audiogames.net/post/564825/#p564825 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabah

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: keyboard_handler help? @2 Can you recommend any alternatives in that case? URL: https://forum.audiogames.net/post/564823/#p564823 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: keyboard_handler help? Most of the code from that source is black magic and buggy unless used perfectly, for what it's worth. URL: https://forum.audiogames.net/post/564820/#p564820 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com

keyboard_handler help?

2020-08-26 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
keyboard_handler help? Hi.I was trying to make a little Python app, to test the keyboard_handler module from hg.q-continuum.net, but can't seem to get it to work. Here's the keyboard handling code.  import keyboard_handler as kh def setup(): keyHandler = kh.Keybo