fix lint error

This commit is contained in:
Eric Le Lay 2018-02-24 18:46:39 +01:00
parent 26774dd680
commit a4e87cd9b9
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)