当前位置: 首页>>代码示例>>Python>>正文


Python Server.read方法代码示例

本文整理汇总了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
开发者ID:unRob,项目名称:livecontrol,代码行数:79,代码来源:Interfaz.py


注:本文中的Server.Server.read方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。