__init__.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:b3d_osc_panel 作者: zeffii 项目源码 文件源码
def event_dispatcher(self, context, type_op):
        if type_op == 'start':

            wm = context.window_manager
            self._timer = wm.event_timer_add(self.speed, context.window)
            wm.modal_handler_add(self)

            osc_statemachine['status'] = RUNNING
            props = context.scene.generic_osc
            paths = context.scene.generic_osc_list
            start_server_comms(props.ip, props.port, [i.path for i in paths])

        if type_op == 'end':
            # osc_statemachine['server'].shutdown()
            osc_statemachine['server'].shutdown()
            osc_statemachine['server'].server_close()
            osc_statemachine['status'] = STOPPED
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号