Buttonbox()得到了一个意外的关键字参数‘root’

今天调试Python代码出现异常,不会处理,求各位帮帮忙!!
异常报告:

发生异常: TypeError
buttonbox() got an unexpected keyword argument 'root'
  File "Z:\Python os\系统\Alpha\Alpha V0.0.0.3.202213900.py", line 59, in <module>
    if (easygui.buttonbox(msg='您的操作是?', title='Python OS:Alpha V0.0.0.3.202213900', choices=('时间', '用户选项', '访问软件官网'), image=None, root=None) == '时间'):

这是代码:

if (easygui.buttonbox("进入系统吗?",choices = ["好的。","不,立刻关机!(按键未开发,无效)"] ) == "好的"):
    easygui.msgbox("请稍等一会儿...这大概20秒!")
    time.sleep(random.randint(15,23))

根据官网上代码,buttonbox没有root关键字参数。所以报错。去掉root=None即可
源码函数定义

def buttonbox(msg="",
              title=" ",
              choices=("Button[1]", "Button[2]", "Button[3]"),
              image=None,
              images=None,
              default_choice=None,
              cancel_choice=None,
              callback=None,
              run=True):

如有帮助,请点采纳。

您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632