notify2无法在浏览器中打开href

时间:2019-05-11 09:04:32

标签: python

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()

0 个答案:

没有答案