graphs.py 文件源码

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

项目:PetroPy 作者: toddheitmann 项目源码 文件源码
def _radio_click(self, label):
        """
        Event handler for selecting which editing type to use.
        Connected on line 763 with on_click method for RadioButtons
        object.
        """
        if label == 'No Edit':
            if self._edit_curve is not None:
                self._edit_curve.set_bbox({'facecolor':'white',
                                           'edgecolor': 'white',
                                           'alpha': 0})
        elif label == 'Manual Edit':
            if self._edit_curve is not None:
                self._edit_curve.set_bbox({'facecolor':'khaki',
                                           'edgecolor': 'khaki',
                                           'alpha': 1})
        elif label == 'Bulk Shift':
            if self._edit_curve is not None:
                self._edit_curve.set_bbox({'facecolor':'khaki',
                                           'edgecolor': 'khaki',
                                           'alpha': 1})

        self.fig.canvas.draw()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号