1 user_callback
= None # Invoked in a callback when a question box is displayed
5 def DBusGMainLoop(a
, set_as_default
= False):
9 def get_object(self
, service
, path
):
13 def get_object(self
, service
, path
):
17 def __init__(self
, obj
, iface
):
21 def GetCapabilities(self
):
24 def Notify(self
, *args
):
25 self
.boxes
.append(args
)
28 app
, replaces_id
, icon
, title
, message
, actions
, hints
, timeout
= args
31 user_callback(self
.callback
['ActionInvoked'], nid
, actions
)
36 return 3 # NM_STATUS_CONNECTED
38 def connect_to_signal(self
, signal
, callback
):
39 self
.callback
[signal
] = callback
42 def __init__(self
, value
):