Prerequisites (Debian):
% sudo apt-get install python-gi libwnck-3-* gir1.2-wnck-3.0
Prerequisites (OpenBSD):
% sudo pkg_add py-gobject libwnck
Virtualenv:
% mkvirtualenv --system-site-packages wim
Install dependencies:
% pip install -r requirements.txt
Build program locally:
% python setup.py develop
Run it:
% wim-gtk
Install it as a user:
% python setup.py install --user
-
Imports should be divide into 3 sections with a line break in between:
- Python imports
- Third Party library imports
- Local imports (always proceded by a . or ..)
- No space should be left btw class declarions and the first method
- Extended Window Manager Hints (EWMH)
- Wnck Docs for C (None exist for Python; Wnck is an implementation of EWMH)
- The Python GTK+ 3 Tutorial
- Python GObject Introspection API Reference
- xprop(1)
- xwininfo(1)