本文整理匯總了Python中_Framework.InputControlElement.InputControlElement類的典型用法代碼示例。如果您正苦於以下問題:Python InputControlElement類的具體用法?Python InputControlElement怎麽用?Python InputControlElement使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了InputControlElement類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: connect
def connect(self, parameter):
if parameter:
InputControlElement.connect_to(self, parameter)
if self.mapped_parameter() is not None:
try:
self.mapped_parameter().remove_value_listener(self.value_updated)
except:
pass
示例2: script_wants_forwarding
def script_wants_forwarding(self):
if not self._is_enabled:
return False
else:
return InputControlElement.script_wants_forwarding(self)
示例3: release_parameter
def release_parameter(self):
if(self._parameter_to_map_to != None):
self.remove_parameter_listener(self._parameter_to_map_to)
self.send_value(0, True)
InputControlElement.release_parameter(self)
self._parameter_last_num_value = 0
示例4: send_value
def send_value(self, value, force = False):
if not self._script is None and self._script.flash_status:
super(AumPCMonoButtonElement, self).send_value(value, force)
else:
InputControlElement.send_value(self, value, force)
示例5: release_parameter
def release_parameter(self):
if(self._parameter_to_map_to != None):
self.remove_parameter_listener(self._parameter_to_map_to)
InputControlElement.release_parameter(self)
示例6: receive_value
def receive_value(self, value):
#for notification in self._value_notifications:
# self._script.log_message(str(self.name) + ' ' + str(notification))
if self._is_enabled:
InputControlElement.receive_value(self, value)