MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / ProcessCommandSelf

Method ProcessCommandSelf

src/pyCecClient/pyCecClient.py:90–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88
89 # display the addresses controlled by libCEC
90 def ProcessCommandSelf(self):
91 addresses = self.lib.GetLogicalAddresses()
92 strOut = "Addresses controlled by libCEC: "
93 x = 0
94 notFirst = False
95 while x < 15:
96 if addresses.IsSet(x):
97 if notFirst:
98 strOut += ", "
99 strOut += self.lib.LogicalAddressToString(x)
100 if self.lib.IsActiveSource(x):
101 strOut += " (*)"
102 notFirst = True
103 x += 1
104 print(strOut)
105
106 # send an active source message
107 def ProcessCommandActiveSource(self):

Callers 1

MainLoopMethod · 0.95

Calls 3

GetLogicalAddressesMethod · 0.45
IsSetMethod · 0.45
IsActiveSourceMethod · 0.45

Tested by

no test coverage detected