[core python programming]chapter 7 programming MS office

时间:2015-05-11 14:31:27   收藏:0   阅读:147

excel.pyw会有问题,解决如下:

因为python3x中没有tkMessageBox模块,Tkinter改成了tkinter
你可以查看你的py当前支持的模块。
在交互式命令行下输入
>>> help()
>>> modules

前三行改为:

1 from tkinter import Tk
2 from time import sleep
3 from tkinter.messagebox import showwarning

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!