I want to select file from a dialog box. Here is code that does all I need but tkMessageBox Not Found. I am using Py3k.
How should I solve this problem?
Or
Is there any other way to create File Dialog in python?
Thanks
I want to select file from a dialog box. Here is code that does all I need but tkMessageBox Not Found. I am using Py3k.
How should I solve this problem?
Or
Is there any other way to create File Dialog in python?
Thanks
The package Tkinter has been renamed to tkinter in Python 3, as well as other modules related to it. Just replace the following in your code, then it should work:
Tkinter -> tkintertkMessageBox -> tkinter.messageboxtkColorChooser -> tkinter.colorchoosertkFileDialog -> tkinter.filedialog 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.