Re: [Tutor] Tkinter message box

2012-06-24 Thread Steven D'Aprano
On Sun, Jun 24, 2012 at 10:00:57PM -0400, ken wrote: > > If this belongs on another list, please let me know. I am using PYTHON 3 > and tkinter. I have been playing around with messagebox. Is there any > way I can display the value of a variable inside a message box? Of course. tkinter doesn't ca

[Tutor] Tkinter message box

2012-06-24 Thread ken
If this belongs on another list, please let me know. I am using PYTHON 3 and tkinter. I have been playing around with messagebox. Is there any way I can display the value of a variable inside a message box? Thank you, Ken ___ Tutor maillist - Tutor@py

Re: [Tutor] joining selected items in list

2012-06-24 Thread Steven D'Aprano
David wrote: Dear Tutors, I have a list that I wish to reorganise into fewer list items. What happens is that some of the items belong together: not ['keine', 'Antwort'] but ['Keine Antwort']. I am not aware of any list methods that can help me here, and would thus be grateful for a hint or two

Re: [Tutor] problem in opening files

2012-06-24 Thread Steven D'Aprano
Craig Cesareo wrote: Be sure your current working directory is your desktop. import os print os.getcwd() Be careful about changing the working directory from *within* Python. While you can do so, and in the hands of somebody who knows what they're doing it is perfectly fine, there are some p

Re: [Tutor] joining selected items in list

2012-06-24 Thread Andreas Perstinger
On Sun, 24 Jun 2012 18:11:10 +0200 David wrote: > I have a list that I wish to reorganise into fewer list items. > What happens is that some of the items belong together: > not ['keine', 'Antwort'] but ['Keine Antwort']. > > I am not aware of any list methods that can help me here, and would >

Re: [Tutor] problem in opening files

2012-06-24 Thread Alan Gauld
On 24/06/12 19:17, pro...@yorku.ca wrote: >>> fo = open('mort.txt') THIS IS WHAT I TYPEDAND THE MESSAGE FOLLOWS Traceback (most recent call last): File "", line 1, in fo = open('mort.txt') IOError: [Errno 2] No such file or directory: 'mort.txt' The file mort.txt certainly

Re: [Tutor] joining selected items in list

2012-06-24 Thread Alan Gauld
On 24/06/12 17:11, David wrote: Dear Tutors, I have a list that I wish to reorganise into fewer list items. What happens is that some of the items belong together: not ['keine', 'Antwort'] but ['Keine Antwort']. I am not aware of any list methods that can help me here, and would thus be gratefu

Re: [Tutor] problem in opening files

2012-06-24 Thread Craig Cesareo
Be sure your current working directory is your desktop. import os print os.getcwd() Otherwise specify the full path to the text file. r'c:\users\mort.txt' -- Craig Cesareo - iPhone Pipeline Technical Director http://www.legend3d.com/ http://www.craigcesareo.com/ 609.994.6370 On Jun 24, 2012

[Tutor] problem in opening files

2012-06-24 Thread promis
I'm am just new to Python, and am having trouble getting started. I am trying to open files of data that I want to work on, and keep on getting a message that no such file exist. For example here is a copy of what I've typed and the error message >>> fo = open('mort.txt') THIS IS

Re: [Tutor] joining selected items in list

2012-06-24 Thread Emile van Sebille
On 6/24/2012 9:11 AM David said... Dear Tutors, I have a list that I wish to reorganise into fewer list items. What happens is that some of the items belong together: not ['keine', 'Antwort'] but ['Keine Antwort']. Can you define the complete list of items that belong together? If so, there's

[Tutor] joining selected items in list

2012-06-24 Thread David
Dear Tutors, I have a list that I wish to reorganise into fewer list items. What happens is that some of the items belong together: not ['keine', 'Antwort'] but ['Keine Antwort']. I am not aware of any list methods that can help me here, and would thus be grateful for a hint or two. Thank you!