StringVar followup question

Timothy Grant tjg at avalongroup.net
Thu Mar 16 12:38:53 EST 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,
    tjg.

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




More information about the Python-list mailing list