StringVar followup question

Timothy Grant tjg at
Thu Mar 16 18:38:53 CET 2000

Gordon McMillan wrote:
> > class def1:
> >         self.a = StringVar()
> >         self.b = StringVar()
> Is that for real, or just email-sloppiness? There is no "self" at
> class scope. Top level statements in a class (usually just
> method "def"s) are evaluated at parse time. Ignoring the "self",
> this would (1) mean that StringVar() was evaluated before a tk
> instance exists, and (2) make all instances of def1 refer to the
> same StringVars.

Sorry, e-mail sloppiness, I forgot the def __init__():

Stand Fast,

Chief Technology Officer              tjg at
Red Hat Certified Engineer  
Avalon Technology Group, Inc.                   (503) 246-3630
>>>>>>>>>>>>Linux...Because rebooting isn't normal<<<<<<<<<<<<

More information about the Python-list mailing list