Tkinter(2.x 与3.X的区别)
摘要:
1.包的引入2.X下是from Tkinter import *而3.x是from tkinter import *否则,会报找不到tkinter的错误Traceback (most recent call last): File "read_data_from_gui.py", line 1, in from tkinter import *ImportError: No module named tkinter2.消息框 1 # 2.X version 2 from Tkinter import * 3 import tkMessageBox 4 5 def save_ 阅读全文
posted @ 2013-10-18 14:39 梦书 阅读(550) 评论(0) 推荐(0) 编辑