from easygui import * choices = ('Scratch', '乐高','Python','C++'); # 这里我们用到了image,但在choices中没有包含图片python.png,当点击图片按钮的时候,将会报错 # 如果将图片名称python.png放到choices中,就不会报错了 a = indexbox(msg='请选择开设的课程', title='选择课程', choices=choices, image="python.png", default_choice='Scratch', cancel_choice='Python') print(a) # print(choices[a])
settings
unfold_less visibility play_arrow