Skip to content

Commit 31c7a4e

Browse files
committed
notification_notify2 pylint fixes
1 parent 9616962 commit 31c7a4e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/plugins/notification_notify2.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
# -*- coding: utf-8 -*-
2+
"""
3+
src/plugins/notification_notify2.py
4+
===================================
5+
"""
26

37
import gi
48
gi.require_version('Notify', '0.7')
59
from gi.repository import Notify
610

711
Notify.init('pybitmessage')
812

13+
914
def connect_plugin(title, subtitle, category, label, icon):
15+
"""Plugin for notify2"""
1016
if not icon:
1117
icon = 'mail-message-new' if category == 2 else 'pybitmessage'
1218
connect_plugin.notification.update(title, subtitle, icon)
1319
connect_plugin.notification.show()
1420

21+
1522
connect_plugin.notification = Notify.Notification.new("Init", "Init")

0 commit comments

Comments
 (0)