Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-16 Thread brandon w
On 08/14/2011 11:14 AM, Alan Gauld wrote: On 14/08/11 14:07, Wayne Werner wrote: Of course I personally I usually do import Tkinter as tk Which means I only have to type 3 extra characters, but it removes any ambiguity - tk.Something had to come from Tkinter Thats exactly what I tend to do n

Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-16 Thread brandon w
On 08/14/2011 03:10 AM, Robert Sjoblom wrote: 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 I figured I might as well, g

Re: [Tutor] Tkinter: no module named messagebox

2011-08-16 Thread brandon w
On 08/14/2011 02:29 AM, Peter Otten wrote: brandon w wrote: On 08/13/2011 04:49 PM, Peter Otten wrote: How do I find the modules in Tkinter? The simplest approach is probably to explore your file system: Step 1: where's Tkinter? $ python -c 'import Tkinter, os; prin

Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-14 Thread Alan Gauld
On 14/08/11 14:07, Wayne Werner wrote: Of course I personally I usually do import Tkinter as tk Which means I only have to type 3 extra characters, but it removes any ambiguity - tk.Something had to come from Tkinter Thats exactly what I tend to do nowadays. I used to use the import * method

Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-14 Thread Wayne Werner
On Aug 14, 2011 2:12 AM, "Robert Sjoblom" wrote: > > However, given that Tkinter is such a huge package to begin with, I'd > say that you should continue to use from Tkinter import *, but be > aware of what you're doing when you type that, and that there is a > certain risk of conflicts. Also, mo

Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-14 Thread Robert Sjoblom
> 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 I figured I might as well, given how I recently had to learn abo

Re: [Tutor] Tkinter: no module named messagebox

2011-08-13 Thread Peter Otten
brandon w wrote: > On 08/13/2011 04:49 PM, Peter Otten wrote: >>> How do I find the modules in Tkinter? >>> >> The simplest approach is probably to explore your file system: >> >> Step 1: where's Tkinter? >> >> $ python -c 'import Tkinter, os; print os.path.dirname(Tkinter.__file__)' >> /us

Re: [Tutor] Tkinter: no module named messagebox

2011-08-13 Thread brandon w
On 08/13/2011 04:49 PM, Peter Otten wrote: brandon w wrote: 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() m

Re: [Tutor] Tkinter: no module named messagebox

2011-08-13 Thread brandon w
On 08/13/2011 04:49 PM, Peter Otten wrote: `python -c 'import Tkinter, os; print os.path.dirname(Tkinter.__file__)'` Thanks dude. That is some really useful information. That will help me for future coding. I found that I needed to use "from tkMessageBox import *" to get it to work. ___

Re: [Tutor] Tkinter: no module named messagebox

2011-08-13 Thread Peter Otten
brandon w wrote: > 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 th

[Tutor] Tkinter: no module named messagebox

2011-08-13 Thread brandon w
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