The package Tkinter has been renamed to tkinter in Python 3, as well as other modules related to it. Here are the name changes:
Tkinter→tkintertkMessageBox→tkinter.messageboxtkColorChooser→tkinter.colorchoosertkFileDialog→tkinter.filedialogtkCommonDialog→tkinter.commondialogtkSimpleDialog→tkinter.simpledialogtkFont→tkinter.fontTkdnd→tkinter.dndScrolledText→tkinter.scrolledtextTix→tkinter.tixttk→tkinter.ttk
I advise you to learn how to dynamically browse the modules with the dir command. If you are under windows, configure Python to use readline module to get auto-completion and make it much easier to list available classes in a module.
-》 http://stackoverflow.com/questions/673174/file-dialog-in-tkinter-python-3
本文介绍了Python3中Tkinter及其相关模块名称的变化,并提供了一些建议帮助开发者更好地使用这些更新后的模块。例如,Tkinter更名为tkinter,tkMessageBox更名为tkinter.messagebox等。

386

被折叠的 条评论
为什么被折叠?



