开发者

How can I read the title, text and icon name from a pynotify.Notification?

If I have a pynotify.Notification object like:

n 开发者_运维技巧= pynotify.Notification('title', 'content', 'icon')

How can I read the title (to give 'title'), the text body (to give 'content') and the icon (to give 'icon')?


In [72]: n = pynotify.Notification('title', 'content', 'icon')

In [73]: n.props.summary
Out[74]: 'title'

In [75]: n.props.body
Out[75]: 'content'

In [76]: n.props.icon_name
Out[77]: 'icon'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜