It's good to have to code comply to a style guide; we go for PEP8
because it's the most used one. Checking for conformance should be done
using the `flake8` tool and the configuration given in this commit.
E402 and E501 are ignored because we don't care (that much) about line
length, and GObject Introspection requires us to import things as we
currently do.
piper/piper.py has not been fixed as it is going to be removed
eventually, when all its relevant bits have found a place in the new
code. It is therefore also ignored in the checking.
_RatbagdDBus now inherits from GObject so that we can use GObject's
signals when we receive a signal over DBus. This means that any users of
the bindings can just `Ratbagd*.connect("<signal>", <callback>)` to
be notified of any emitted signals.
Another advantage of inheriting to GObject is that the properties can
now be GObject properties. Again, this allows users of the bindings to
`Ratbagd*.connect("notify::<property>", <callback>)` to watch for
property changes.
This is a direct copy from the last ratbagd/python/ratbagd/__init__.py,
with the line "This file is part of ratbagd" removed, because, well,
it's not anymore.
As discussed in #5, this enables better integration with the GNOME stack
through Meson's GNOME module. This will allow us to use GSchemas,
AppData and other GNOME technologies much easier. It will also simplify
building Flatpaks of Piper.
Same file as the 404, just shrunk down to 48 pixels and stretched a bit to
fill out the square canvadl (but it is still an svg). Someone with more design
skills can apply some spit and polish to it.
Note: like the .desktop file this ends up being installed in the egg when
using a normal setup.py run.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Dropped in 7a579f701f when we switched to setup.py. The main
entry point is now main() so we skipped over this code.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Also converted piper.py from a standalone module into a package, so that
we have somewhere for setuptools to put the data files and load them
from.
Signed-off-by: Dan Callaghan <dcallagh@redhat.com>
And add a 404 picture if we can't find one there.
Ideally the path should come from libratbag's pkgconfig file but that requires
hooking up a makefile or automake or something.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Changing the iter triggers the "changed" signal, so we set all buttons to None
first, then back to the actual value (if any)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>