~gufw-developers/gui-ufw/testing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
from gi.repository import Unity, Gio, GObject, Dbusmenu

loop = GObject.MainLoop()

launcher = Unity.LauncherEntry.get_for_desktop_id ("gufw.desktop")

launcher.set_property("progress", 0.42)
launcher.set_property("progress_visible", True)

def update_urgency():
    return
GObject.timeout_add_seconds(5, update_urgency)

loop.run()