コード例 #1
0
def create():
    c = ControlPoint()
    c.subscribe('new_device_event', on_new_device)
    c.subscribe('removed_device_event', on_removed_device)
    return c
コード例 #2
0
 def __init__(self):
     ControlPoint.__init__(self)
     self.subscribe('new_device_event', self.device_found)
コード例 #3
0
def create():
    c = ControlPoint()
    c.subscribe('new_device_event', on_new_device)
    c.subscribe('removed_device_event', on_removed_device)
    return c
コード例 #4
0
ファイル: cli.py プロジェクト: icucinema/transformer
 def __init__(self):
   ControlPoint.__init__(self)
   self.subscribe('new_device_event', self.device_found)
   self.service = 'urn:schemas-icucinema-co-uk:service:Lighting:1'
   self.utype = 'urn:schemas-icucinema-co-uk:device:LXDesk:1'
コード例 #5
0
ファイル: cli.py プロジェクト: icucinema/transformer
 def __init__(self):
   ControlPoint.__init__(self)
   self.subscribe('new_device_event', self.device_found)
   self.service = 'urn:schemas-icucinema-co-uk:service:RetractingScreen:1'
   self.utype = 'urn:schemas-icucinema-co-uk:device:RetractingScreen:1'
コード例 #6
0
ファイル: cli.py プロジェクト: icucinema/transformer
 def __init__(self):
   ControlPoint.__init__(self)
   self.subscribe('new_device_event', self.device_found)
   self.service = 'urn:schemas-icucinema-co-uk:service:Audio:1'
   self.utype = 'urn:schemas-icucinema-co-uk:device:CP500:1'
コード例 #7
0
 def __init__(self):
     ControlPoint.__init__(self)
     self.lamps = []