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

2005-11-15 Thread Nathan Pinno
From: Alberto Troiano [mailto:[EMAIL PROTECTED] Sent: November 15, 2005 8:51 AM To: 'Nathan Pinno'; 'Alan Gauld'; 'Tutor Mailing List' Subject: RE: [Tutor] Do I have to initialize TKInter before I can use it? Hey Nathan I think this is what you are looking for ###

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

2005-11-15 Thread Alberto Troiano
inal- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Nathan Pinno Enviado el: Martes, 15 de Noviembre de 2005 00:43 Para: 'Alan Gauld'; 'Tutor Mailing List' Asunto: Re: [Tutor] Do I have to initialize TKInter before I can use it? Alan and all, I imported

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

2005-11-14 Thread Nathan Pinno
rom: Alan Gauld [mailto:[EMAIL PROTECTED] Sent: November 14, 2005 9:35 PM To: Nathan Pinno; Tutor Mailing List Subject: Re: [Tutor] Do I have to initialize TKInter before I can use it? Nathan, > I am having problems. The latest error message I got was: >tkMessageBox.showinfo("Hoc

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

2005-11-14 Thread Alan Gauld
Nathan, > I am having problems. The latest error message I got was: >tkMessageBox.showinfo("Hockey", > NameError: name 'tkMessageBox' is not defined A NameError means Python doesn't recognise the name. Usually that's because either you didn't declare the variable or you forgot to import the

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

2005-11-14 Thread Alan Gauld
> Do I have to initialize TKInter before I can use it, and if so, how would > I > go about doing that? Yes, by calling Tk() Alan G. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

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

2005-11-14 Thread Hugo González Monteverde
Hi Nathan, The interactive interpreter is your friend. I just displayed a simple dialog without creating a Tkinter App, complete with a mailoop or anything. But I won't tell you how... you need to import the module and then use one of its functions. But you need to try it yourself (be aware t

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

2005-11-14 Thread John Fouhy
On 15/11/05, Nathan Pinno <[EMAIL PROTECTED]> wrote: > John, > > I learned it from the docs on pythonware.com - the introduction to TKInter - > Standard Dialogs. > Since it doesn't exist, how can I show a info box before the main part of my > program? Ok, let's see what the pythonware docs say: h

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

2005-11-14 Thread Nathan Pinno
Tutor] Do I have to initialize TKInter before I can use it? To: Tutor Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 On 15/11/05, Nathan Pinno <[EMAIL PROTECTED]> wrote: > > > John and all, > > I am having problems. The latest erro

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

2005-11-14 Thread Hugo González Monteverde
Hi Nathan, It is always better if you include what you're actually trying to do. I see you included one traceback error, but I see no reference to what you're coding or any of your code. In your case , it's likely that you did not import the tkMessageDialog module or something like this. But

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

2005-11-14 Thread John Fouhy
On 15/11/05, Nathan Pinno <[EMAIL PROTECTED]> wrote: > > > 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'

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

2005-11-14 Thread Nathan Pinno
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 Pin

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

2005-11-14 Thread Alex Hunsley
Nathan Pinno wrote: > Hey all, > > Do I have to initialize TKInter before I can use it, and if so, how > would I go about doing that? > > Thanks, > Nathan Pinno Btw, your question would be a little more user-friendly if you don't post HTML, and don't post embedded images as well! (Not ever

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

2005-11-14 Thread John Fouhy
On 15/11/05, Nathan Pinno <[EMAIL PROTECTED]> 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

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

2005-11-14 Thread Nathan Pinno
Hey all,   Do I have to initialize TKInter before I can use it, and if so, how would I go about doing that?   Thanks, Nathan Pinno ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor