base.py 文件源码

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

项目:kite 作者: pyrocko 项目源码 文件源码
def isoCurveControl(self):
        iso_ctrl = pg.InfiniteLine(
            pos=0,
            angle=0,
            pen='g',
            movable=True)
        iso_ctrl.setValue(0.)
        iso_ctrl.setZValue(1000)

        def isolineChange():
            self._plot.iso.setLevel(iso_ctrl.value())

        iso_ctrl.sigDragged.connect(isolineChange)
        self.vb.addItem(iso_ctrl)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号