|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
代码是:
import easygui as g
choices = ['香蕉','苹果','梨子','西瓜','草莓']
title = '1'
msg = '2'
g.choicebox(msg,title,choices)
报错原因是
Traceback (most recent call last):
File "F:\python\自己写的\试错.py", line 5, in <module>
g.choicebox(msg,title,choices)
File "F:\python\lib\site-packages\easygui\boxes\choice_box.py", line 32, in choicebox
mb = ChoiceBox(msg, title, choices, preselect=preselect,
File "F:\python\lib\site-packages\easygui\boxes\choice_box.py", line 101, in __init__
self.ui = GUItk(msg, title, self.choices, preselect_list, multiple_select,
File "F:\python\lib\site-packages\easygui\boxes\choice_box.py", line 196, in __init__
self.config_root(title)
File "F:\python\lib\site-packages\easygui\boxes\choice_box.py", line 299, in config_root
screen_height = self.boxRoot.win
File "F:\python\lib\tkinter\__init__.py", line 2345, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'win'
>>>
|
|