未notify2 href
打开浏览器。
当您单击浏览器时如何打开链接“ https://github.com”?
# -*- coding: utf-8 -*-
import notify2
def p():
print('cccc')
pass
notify2.init('app name')
n = notify2.Notification("https://github.com")
n.add_action("body-hyperlinks",
"<a href=" + "'" + "https://github.com" + "'" + ">Open in
browser</a>",
p, user_data=None)
n.set_timeout(10000)
n.show()