def __init__ ( self , context ) :
self.context = context
-# def cosa ( self ) :
-# gps.GPSObject.__init__( self , widget )
-# # self.osso_context = osso.Context("wifi_scanner", "2.0", False)
-# # osso_rpc = osso.Rpc(self.osso_context)
-# # scan_out = osso_rpc.rpc_run("org.javiplx.wifiscan", "/org/javiplx/wifiscan", "org.javiplx.wifiscan", "wakeup", wait_reply = True)
-# scan_out = rpc_run("org.javiplx.wifiscan", "/org/javiplx/wifiscan", "org.javiplx.wifiscan", "wakeup", wait_reply = True)
-# self._timer = None
-# self._info = None
-# self._status = None
-
def rpc_run ( self , object_name , object_path , object_iface , method , wait_reply=False ) :
connection = self.context.get_connection()
proxy = connection.get_object( object_name , object_path )