gui: fix flake8 warnings
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
0840f353d5
commit
0c333aa64b
|
@ -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
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue