Re: [Tutor] Creating a line in a text file every time a button is pressed.

2011-11-29 Thread Dave Angel
On 11/29/2011 10:09 AM, Mic wrote: Hey again. root=Tk() root.title("testV2") app=Mainwindow(root) root.mainloop() What's that code got to do with the question below? I am now writing another program. It turned out just fine, but I have one question. If button one is pressed I want t

[Tutor] Creating a line in a text file every time a button is pressed.

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