Re: [Tutor] tkinter.TclError

2011-08-13 Thread Peter Otten
brandon w wrote: > radio1 = Radiobutton(master=myapp, text="had breakfast", value="had > breakfast", variable=relStatus, commmand=iClicked).pack() > *Traceback (most recent call last): >File "tkwindow.py", line 54, in > radio1 = Radiobutton(master=myapp, text="had breakfast", value="had

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

[Tutor] tkinter.TclError

2011-08-13 Thread brandon w
Here is the code: #!/usr/bin/python from Tkinter import * from tkMessageBox import * def iClicked(): radioValue = relStatus.get() tkMessageBox.showinfo("You clicked", radioValue) return def chLabel(): name = "Thank you for clicking me. " + your_name.get() labelText.set(name

Re: [Tutor] Add lines to middle of text file

2011-08-13 Thread Steven D'Aprano
Wolf Halton wrote: Is there a way to add text to an arbitrary place in a text file? If you are using the OpenVMS operating system, or a VAX computer, then yes. The operating system natively supports inserting data into the middle of a file. If you are using Windows, Linux, Unix, Mac OS (cl

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

[Tutor] Add lines to middle of text file

2011-08-13 Thread Wolf Halton
Is there a way to add text to an arbitrary place in a text file? NewAddition="this important directive. " Open config.config Add new line above "# this marker text in config.config" Insert $NewAddition in blank line created above. Save config.config Close config.config <\pseudocode> I am automa

Re: [Tutor] Python

2011-08-13 Thread Steven D'Aprano
Jon wrote: Could you link me to some beginners tutorials/idle codes thank you. http://duckduckgo.com/?q=python+beginners+tutorial (Check out the very first link provided.) -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or cha

Re: [Tutor] Python

2011-08-13 Thread brandon w
On 08/13/2011 05:56 PM, Jon wrote: Could you link me to some beginners tutorials/idle codes thank you. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor Check out so

Re: [Tutor] Python

2011-08-13 Thread Alan Gauld
On 13/08/11 22:56, Jon wrote: Could you link me to some beginners tutorials/idle codes thank you. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor Just go to the pytho

[Tutor] Python

2011-08-13 Thread Jon
Could you link me to some beginners tutorials/idle codes thank you. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Testing, please ignore

2011-08-13 Thread Alan Gauld
Testing from new Ubuntu install... problems with Thunderbird settings... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pytho

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

Re: [Tutor] Where to direct non-language questions?

2011-08-13 Thread Steven D'Aprano
Michael Scharf wrote: Sent: Friday, August 12, 2011 3:54 PM Hi List, I'm am not quite at the point of needing this, but where would I go to ask a question like "Why is the OpenCalais Python API not returning all fields when I do x or y" or "Has anyone built their own Python API for OpenCalais"