[Tutor] Do I have to initialize TKInter before I can use it?

Nathan Pinno falcon3166 at hotmail.com
Tue Nov 15 02:34:59 CET 2005


John and all,

I am having problems. The latest error message I got was:
Traceback (most recent call last):
  File "D:\Python24\hockey.py", line 19, in -toplevel-
    tkMessageBox.showinfo("Hockey",
NameError: name 'tkMessageBox' is not defined

What do I have to do in this case?

Nathan Pinno
  Date: Tue, 15 Nov 2005 12:41:57 +1300
  From: John Fouhy <john at fouhy.net<mailto:john at fouhy.net>>
  Subject: Re: [Tutor] Do I have to initialize TKInter before I can use
  it?
  To: Tutor <tutor at python.org<mailto:tutor at python.org>>
  Message-ID: <5e58f2e40511141541m2eff089bo at mail.gmail.com<mailto:5e58f2e40511141541m2eff089bo at mail.gmail.com>>
  Content-Type: text/plain; charset=ISO-8859-1

  On 15/11/05, Nathan Pinno <falcon3166 at hotmail.com<mailto:falcon3166 at hotmail.com>> wrote:
  >
  > Hey all,
  >
  > Do I have to initialize TKInter before I can use it, and if so, how would I
  > go about doing that?

  Generally, you need to create a Tkinter.Tk object before you create
  any other Tkinter objects.

  Are you having problems?

  --
  John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051114/335a903f/attachment.html


More information about the Tutor mailing list