Re: [Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread Alan Gauld
On 29/11/11 18:29, Mic wrote: Oh, where are you living if you are waiting for lunch? It's past dinner here, so that's why I got mails in the middle of the night! I thought most people were from UK! You are on the internet, its global! :-) Most tutor subscribers are actually US based I suspect,

Re: [Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread Dave Angel
On 11/29/2011 02:24 PM, Mic wrote: Actually, I nearly know how do to solve this problem. I just have one problem. Can I use writeline() to write text into line 3 or line 5 for example? Say that I want to write the text "hi" into line five of a text file, can I do this using writeline(), i

Re: [Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread bodsda
ic To: bod...@googlemail.com To: tutor-bounces+bodsda=googlemail@python.org To: Tutor - python List Subject: Re: [Tutor] How to write lines in a text file (GUI) Sent: 29 Nov 2011 19:24 >Note: I'm struggling to follow your code whilst reading on my phone so the >following suggesti

Re: [Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread Mic
Note: I'm struggling to follow your code whilst reading on my phone so the following suggestions make no reference to your particular codebase Okay I understand. Perhaps it doesn't matter. Let's first assume that all buttons could be pressed in any order, therefore given the following press

Re: [Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread Mic
How is this different from the question you posted 3 hours ago, with subject: "[Tutor] Creating a line in a text file every time a button is pressed." Sorry about the repost. My Email-client is set to resend the mail if it is marked as spam by the reciever. So, it wasn't the case, you d

Re: [Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread bodsda
e this helps, Bodsda Sent from my BlackBerry® wireless device -Original Message- From: "Mic" Sender: tutor-bounces+bodsda=googlemail@python.org Date: Tue, 29 Nov 2011 19:02:52 To: Subject: [Tutor] How to write lines in a text file (GUI) Hey again. I figured I would first po

Re: [Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread Dave Angel
On 11/29/2011 01:02 PM, Mic wrote: Hey again. I figured I would first post this piece of code and then ask my questions. How is this different from the question you posted 3 hours ago, with subject: "[Tutor] Creating a line in a text file every time a button ispressed." I'm working

[Tutor] How to write lines in a text file (GUI)

2011-11-29 Thread Mic
Hey again. I figured I would first post this piece of code and then ask my questions. FREE = "green" OCCUPIED = "red" class Mainwindow(Frame): def __init__(self,master): super(Mainwindow,self).__init__(master) self.grid() self.create_mainwidgets() def create_mai