gui: fix flake8 warnings

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/145/head
Peter Hutterer 2019-08-08 14:41:26 +10:00
parent 0840f353d5
commit 0c333aa64b
3 changed files with 4 additions and 4 deletions

View File

@ -14,12 +14,15 @@
import subprocess
from multiprocessing import Process
def start_tuhi():
subprocess.run('tuhi')
def start_tuhigui():
subprocess.run('tuhi-gui')
if __name__ == '__main__':
tuhi = Process(target=start_tuhi)
tuhi.daemon = True

View File

@ -11,7 +11,6 @@
# GNU General Public License for more details.
#
from gettext import gettext as _
from gi.repository import GObject, Gtk
from .drawing import Drawing
from .config import Config
@ -108,8 +107,7 @@ class DrawingPerspective(Gtk.Stack):
fb.insert(drawing)
# Remove deleted drawings
deleted = [ts for ts in self.known_drawings if ts not in
[ js['timestamp'] for js in config.drawings]]
deleted = [ts for ts in self.known_drawings if ts not in [js['timestamp'] for js in config.drawings]]
for ts in deleted:
drawing = self.known_drawings[ts]
fb = self.flowboxes[_hash(drawing)]

View File

@ -179,7 +179,6 @@ class MainWindow(Gtk.ApplicationWindow):
device.connect('notify::battery-state', self._on_battery_changed)
self._on_battery_changed(device, None)
def _on_battery_changed(self, device, pspec):
if device.battery_percent > 80:
fill = 'full'