PyCharm
Theres a goome plugin for the JetBrains IDEs with a tool window 0.5, live templates and a .goome.json preview. Get it from the JetBrains Marketplace or from disk, the Rider page has both ways and everything it does.
New project
- File > New Project, default virtualenv, Python 3.8 or newer.
- In the Terminal tab (venv is already active):
pip install goome
- Paste the overlay from Getting started in Python into
main.py, right click, Run ‘main’.
Or Settings > Python Interpreter > + and search goome. The wheels have the C library inside, on other platforms pip builds it and you need a C compiler once, Getting started in Python says which one.
Debugging
The PyCharm debugger works fine in your own code. goome is a C library behind ctypes though, you cant step into it from here. Use CLion or gdb for that.
Test backend: add GOOME_BACKEND=test;GOOME_TEST_SHOTS=shots/ to the run config’s environment variables and every frame lands in shots/ (Testing without a screen).
Gotchas
- On Windows the wheel has
goome.dllinside the package.GOOME_LIB=C:\path\goome.dlluses your own build instead. GOOME_BACKEND=x11in the run config gets you real global hotkeys on a Wayland desktop with XWayland.