field_split_menu.py 文件源码

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

项目:hachoir3 作者: vstinner 项目源码 文件源码
def ask_split(self, caption, min, max):
        # Note: we would prefer a NumberEntryDialog but this isn't currently wrapped
        # by wxPython Phoenix.
        res = None
        dlg = wx.TextEntryDialog(self.parent, 'Enter split offset:', '',
                                 caption, min, min, max)
        if dlg.ShowModal() == wx.ID_OK:
            try:
                res = int(dlg.GetValue())
            except ValueError:
                res = None
        dlg.Destroy()
        return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号