Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/n/o/notify2-0.3/examples/qt-app.py   notify2(Download)
                                "You can free up some disk space by " +
                                "emptying the trash can.")
        n.set_urgency(notify2.URGENCY_CRITICAL)
        n.set_category("device")
        if ('actions' in server_capabilities) or OVERRIDE_NO_ACTIONS:

src/n/o/notify2-0.3/examples/multi-actions.py   notify2(Download)
                              "You can free up some disk space by " +
                              "emptying the trash can.")
    n.set_urgency(notify2.URGENCY_CRITICAL)
    n.set_category("device")
    if ('actions' in server_capabilities) or OVERRIDE_NO_ACTIONS:

src/n/o/notify2-0.3/test_notify2.py   notify2(Download)
    def test_urgency(self):
        nl = notify2.Notification("Low", "Who cares?")
        nl.set_urgency(notify2.URGENCY_LOW)
        nl.show()
        nl.close()
 
        nn = notify2.Notification("Normal", "Some information")
        nn.set_urgency(notify2.URGENCY_NORMAL)
 
        nu = notify2.Notification("Urgent", "Vital information!")
        nu.set_urgency(notify2.URGENCY_CRITICAL)
        nu.show()
        nu.close()