Change DesktopNotification arguments (#657)

Change `DesktopNotification` arguments to named arguments because `DesktopNotification` constructor uses `**kwarg` and requires named arguments.
This commit is contained in:
Mario Baranzini 2018-07-17 15:58:03 +02:00 committed by Erik Johnson
parent 0f4480e991
commit a252beb1db

View File

@ -101,7 +101,7 @@ class Pomodoro(IntervalModule):
self.time = None
def _alarm(self, text):
notification = DesktopNotification('Alarm!', text)
notification = DesktopNotification(title='Alarm!', body=text)
notification.display()
subprocess.Popen(['aplay',