alex.ouyang 发表于 2020-8-19 17:07:58

fileopenbox 打不开

请问各位大佬mac系统使用easygui函数的fileopenbox 没有弹出框架,报错Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'File types array cannot be empty',请问如何解决?data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOkAAAAqCAYAAABWS3z5AAAOSElEQVR4Ae2c+XNUxRbH/T+sykZiQiAhBAiJgUAIWwg81gSBCkRWlX1HLZE1UCCLeY+AL4CsoqA8MEIVPgERlE0WH+K/c159TjzXzjiTZCaTmQnpH2717T693e7z7bPc7n4tLS1N/OPHwPNA6vLAa35yUndy/Nz4uYEHPEi9JuE1qRTnAQ/SFJ8gL029NO31IM1/c7wUjpnhpUGCF5vp06fL/Pnz/bgnYNxjAml5ebls2LBBdu/eLTNmJBcgY9d9JpMbr6cEs5TO2SAVS/ekRF96WgJ/8cUXcuvWrT7xrT09lp3VHzVIBwwYoOBctWqV7Nq1S2bNmpXUieqXXyQ5hcOS2gcb5LEbjkvNrtaU6Iv1qafCYcOGyYgRI/rEt/bUGHa13qhBmpWVJYWFhTo5O3fuTBpIUXNn/OuRPuM2ngiYpX9JpcxsfqLPrKPPpHrrRan99wspm7tJ85TN2yz/2PdfmfrJbak7/odM3X9TsgcWB+WHzXhPy0Kbduiu9B8+JqAxqNOb7sub9R/I9MM/a/maHVekaMKctjItL6Wu5WXQfk7B0HZlI03KgQMH5Pnz5/L777/LTz/9FDB/Xl6e3LlzR168eKG0+/fvy5QpU4I6q6qq5IcfflA6eS5duqS0kpISefr0qdTW1gZ5169fL48fPxbmLzs7W7799lstR77W1lb56quvNO/EiRPlyZMnQtv0d86cOfLrr78G9aDmEue5ePFikB7p2yx9eO3qYFxnHXsulSs/lbS09KD8yMW7dC4Zd+aP+bWyHYULFy6UZ8+e6bdcvnxZ+z5hwoQule2o3lSiRQ1St/PJBGlmdq4MKK+W6o8vtVN3SWOih0xZJIAUQMIAvNN31FHo47eckeKaBmWIqnXHlPZGUanSJnxwXgZ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GnUTRZTckXTdXy0Ppmyg85fh1tz1qxq+mODWM06ecETOxSyhdr1do7Vp8dwTFjxrivkmLlteQ1gmZKDm0crMRmMVuneOXK8A+7R7l61ZY3M16qtQX1GxZM1CLM196GQ3dMQLlzIV+7ns0qP9vO/G4AW6P4kedm1bUj9Gp2e8rE2BG2/Jp4pMbBVrZZs+tuwUQd/9yFX2HjEyVWal9T5zdZ//9vh5zy5h0qp/39cyJmn9r+DbLZ7cnhy59++sn6ejCGpsbBVrZZs+tuwUTQEWziqG3iMLuZ3QwDhgHDQOtioKZgopJ/4zRQxUHFD9F0hrMI5p+4f8wuZhfDgGHAMFA9BpLBBH8TzHseTqj7xuVUcfh5oF9eazr3r2ka3VrbafQakc8hIH5tDXty8ZlaI/gYzeo7gdnMbGYYMAwYBtqHgWQwwUFCAofwW+FGBRMELXw2Va1Ta21XLZ/21EcvPoniKxa+qfY/t2wPXWvbvg5g9jP7GQYMA4aB9mPgf9yohtfOBbNEAAAAAElFTkSuQmCC

zltzlt 发表于 2020-8-19 17:08:26

你是怎么调用的?

alex.ouyang 发表于 2020-8-19 17:33:11

import easygui as g
g.fileopenbox()
代码如上 我用diropenbox能打开弹窗 就是fileopenbox 不行,Python会退出

1q23w31 发表于 2020-8-19 21:14:48

alex.ouyang 发表于 2020-8-19 17:33
import easygui as g
g.fileopenbox()
代码如上 我用diropenbox能打开弹窗 就是fileopenbox 不行,Pytho ...

尝试用idle之外的方式运行,例如sublime text

alex.ouyang 发表于 2020-8-20 13:09:06

我用visual使用了g.fileopenbox()之后一样出现问题,python报错退出了,会不会是imac系统的问题?
页: [1]
查看完整版本: fileopenbox 打不开