diff --git a/setup.cfg b/setup.cfg index 9888b3b1..cea0a382 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [pycodestyle] count=1 -select = W1, W2, W3, E114, E115, E125, E129, E211, E222, E227, E266, E271, E272, E3, E703, E711, E712, E713, E721, E9 +select = W1, W2, W3, E114, E115, E125, E129, E211, E222, E227, E262, E266, E271, E272, E3, E703, E711, E712, E713, E721, E9 # https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes max-line-length = 100 diff --git a/src/gpodder/gtkui/draw.py b/src/gpodder/gtkui/draw.py index dd5f68de..62a71b60 100644 --- a/src/gpodder/gtkui/draw.py +++ b/src/gpodder/gtkui/draw.py @@ -343,6 +343,7 @@ def progressbar_pixbuf(width, height, percentage): return cairo_surface_to_pixbuf(surface) + def get_background_color(state=Gtk.StateFlags.NORMAL, widget=Gtk.TreeView()): """ @param state state flag (e.g. Gtk.StateFlags.SELECTED to get selected background)