save.py 文件源码

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

项目:cablefish 作者: michgur 项目源码 文件源码
def asktosave(root):
    s = tkMessageBox.askyesnocancel('Unsaved Packets...',
                                    'Do You Want to Save Your Packets?\n  If You Won\'t, They\'ll be Really Sad',
                                    parent=root)
    if not s: return s  # s can be None (for 'Cancel') or False (for 'No')
    filename = tkFileDialog.asksaveasfilename(title='Save As',
                                              parent=root,
                                              filetypes=[('cablefish files', '.cf'), ('all files', '.*')],
                                              initialdir='C:/Users/',
                                              defaultextension='.cf'
                                              )
    return filename
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号