Re: [Tkinter-discuss] Calling functions outside the class

2010-12-17 Thread Michael O'Donnell
Hi Cristian, The problem is, self is only defined within the class definition. Basically, the function are not part of the class, just called by the class. We use a lambda to get the class passed to the function. So, to correct your code: from Tkinter import * class MyApp: def __init__(self

[Tkinter-discuss] Calling functions outside the class

2010-12-16 Thread craf
Hi. I'm testing this code: --- from Tkinter import * class MyApp: def __init__(self, parent): self.myParent = parent ### (7) remember my parent, the root self.myContainer1 = Frame(parent) self.myContaine