本文整理汇总了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)