I have tried to follow the tutorial I found here:

Python 2.7 Tutorial
http://www.youtube.com/watch?v=uh6AdDX7K7U

This is what I have done so far:

#!/usr/bin/python

from Tkinter import *
import Tkinter.MessageBox

myapp = Tk()
myapp.title("This is the gui title")
myapp.geometry("500x500+600+600")
myapp.mainloop()

I run it like this:

$ python tktest.py

I am getting the error message:

Traceback (most recent call last):
  File "tkwindow.py", line 12, in <module>
    import Tkinter.MessageBox
ImportError: No module named MessageBox

And then after changing the uppercase to lowercase this:

Traceback (most recent call last):
  File "tkwindow.py", line 12, in <module>
    import Tkinter.messagebox
ImportError: No module named messagebox


How do I find the modules in Tkinter?

I am running Python 2.6.6. It may be a little older and not have the messagebox module.





_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to