Change DesktopNotification arguments (#657)
Change `DesktopNotification` arguments to named arguments because `DesktopNotification` constructor uses `**kwarg` and requires named arguments.
This commit is contained in:
parent
0f4480e991
commit
a252beb1db
@ -101,7 +101,7 @@ class Pomodoro(IntervalModule):
|
|||||||
self.time = None
|
self.time = None
|
||||||
|
|
||||||
def _alarm(self, text):
|
def _alarm(self, text):
|
||||||
notification = DesktopNotification('Alarm!', text)
|
notification = DesktopNotification(title='Alarm!', body=text)
|
||||||
notification.display()
|
notification.display()
|
||||||
|
|
||||||
subprocess.Popen(['aplay',
|
subprocess.Popen(['aplay',
|
||||||
|
Loading…
Reference in New Issue
Block a user