本文整理汇总了Python中Server.Server.read方法的典型用法代码示例。如果您正苦于以下问题:Python Server.read方法的具体用法?Python Server.read怎么用?Python Server.read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Server
的用法示例。
在下文中一共展示了Server.read方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Server import Server [as 别名]
# 或者: from Server.Server import read [as 别名]
class Interfaz:
__module__ = __name__
__doc__ = 'Clase principal'
scene = 0
track = 0
slisten = {}
clisten = {}
# pplisten = {}
cnlisten = {}
cclisten = {}
# wlisten = {}
# llisten = {}
def __init__(self, c_instance):
self.c_instance = c_instance
self._server = Server()
self._setup_server()
Log.info('Inicializado!')
if self.song().visible_tracks_has_listener(self.refresh_state) != 1:
Log.info('setting listener')
self.song().add_visible_tracks_listener(self.refresh_state)
# DE AHUEVO
def connect_script_instances(self, instanciated_scripts):
"""
Called by the Application as soon as all scripts are initialized.
You can connect yourself to other running scripts here, as we do it
connect the extension modules
"""
return
def is_extension(self):
return False
def request_rebuild_midi_map(self):
"""
To be called from any components, as soon as their internal state changed in a
way, that we do need to remap the mappings that are processed directly by the
Live engine.
Dont assume that the request will immediately result in a call to
your build_midi_map function. For performance reasons this is only
called once per GUI frame.
"""
return
def build_midi_map(self, midi_map_handle):
self.refresh_state()
def receive_midi(self, midi_bytes):
return
def can_lock_to_devices(self):
return False
def suggest_input_port(self):
return ''
def suggest_output_port(self):
return ''
def __handle_display_switch_ids(self, switch_id, value):
pass
# /DE AHUEVO
def update_display(self):
# logging.info('ud')
try:
self._server.read()
except Exception, e:
Log.info("chanfle")
Log.info(e)
return