savedpoints.py 文件源码

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

项目:PPPLCalibrationFramework 作者: timothyhollabaugh 项目源码 文件源码
def _on_save_file(self):
        points_file = QFileDialog.getSaveFileName(caption = "Save Points", filter = 'CSV Files (*.csv)')

        if points_file[0] is not None and points_file[0] != '':

            out_points = []
            for name, value in self._saved_points.items():
                out_points.append([name, value])

            with open(points_file[0], 'w', newline='') as csvfile:
                csvwriter = csv.writer(csvfile, quoting=csv.QUOTE_MINIMAL)
                csvwriter.writerows(out_points)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号