1

如果我有一个 pynotify.Notification 对象,例如:

n = pynotify.Notification('title', 'content', 'icon')

如何阅读标题(给出“标题”)、正文(给出“内容”)和图标(给出“图标”)?

4

1 回答 1

1
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'
于 2010-12-04T16:39:53.637 回答