Example #1
0
 def __init__(self, parent, title, content, icon, timeout):
     SugarNotify.__init__(self, timeout)
     self._parent = parent
     self.props.title = title
     self.props.msg = content
     if icon is not None:
         icon = Icon(icon_name=icon)
         icon.show()
         self.props.icon = icon
         icon.props.pixel_size = style.SMALL_ICON_SIZE * 2
     self.connect('response', self.remove_myself)