Can anyone help with this code... I have infinite recursion but since I'm pretty new to Python (and programming in general) I can't find where I did the mistake.
Thanks a lot in advance. Adam ************************************************* import Tkinter class RootFrame(Tkinter.Frame): def __init__(self,parent=None,myHeight=600,myWidth=800,myBd=3,\ myRelief=Tkinter.RIDGE): Tkinter.Frame.__init__\ (self,parent,height=myHeight,width=myWidth,bd=myBd,\ relief=myRelief) self.grid() self.grid_propagate(0) self.createFrames() self.showMsg() def showMsg(self): msg=Tkinter.Label(textFrame,text="Are you thinking of an animal?") msg.grid() def createFrames(self): textFrame=TextFrame(self,300,600) textFrame.grid() textFrame.grid_propagate(0) def createButtons(self): yesButton=Tkinter.Button(self,text="Yes") yesButton.grid(row=1,sticky=Tkinter.E) noButton=Tkinter.Button(self,text="No") noButton.grid(row=1,sticky=Tkinter.W) class TextFrame(RootFrame): def __init__(self,parent,myHeight,myWidth): RootFrame.__init__(self,parent,myHeight,myWidth) rootFrame=RootFrame() rootFrame.mainloop() ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list