oaubert / advene

Official Advene repository
https://www.advene.org/
GNU General Public License v2.0
36 stars 9 forks source link

from gi.repository import Gdk in htmleditor.py #52

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

flake8 testing of https://github.com/oaubert/advene on Python 2.7.14

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./lib/advene/gui/edit/htmleditor.py:937:9: F821 undefined name 'Gdk'
        Gdk.KEY_b: lambda: t.apply_html_tag('b'),
        ^
./lib/advene/gui/edit/htmleditor.py:938:9: F821 undefined name 'Gdk'
        Gdk.KEY_i: lambda: t.apply_html_tag('i'),
        ^
./lib/advene/gui/edit/htmleditor.py:939:9: F821 undefined name 'Gdk'
        Gdk.KEY_z: lambda: t.dump_html(),
        ^
./lib/advene/gui/edit/htmleditor.py:946:32: F821 undefined name 'Gdk'
        if event.get_state() & Gdk.ModifierType.CONTROL_MASK and event.keyval in actions:
                               ^