demo-chart.py 文件源码

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

项目:stock 作者: pythonstock 项目源码 文件源码
def on_message(self, message):
            # The 'supports_binary' message is relevant to the
            # websocket itself.  The other messages get passed along
            # to matplotlib as-is.

            # Every message has a "type" and a "figure_id".
            message = json.loads(message)
            if message['type'] == 'supports_binary':
                self.supports_binary = message['value']
            else:
                manager = self.application.manager
                manager.handle_json(message)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号