[Edu-sig] Re: Pygeo, platforms, wx and Tk
Scott David Daniels
Scott.Daniels at Acm.Org
Sun Dec 19 00:56:10 CET 2004
Arthur wrote:
> ... to get my bi-directional communication, all I need to do is
> setattr(Display,"control_panel",self) in the __init__ of the Tk ControlPanel
> class, so that now Display has a reference to the ControlPanel by which
> it can send messages of its events back in that direction.
>
> My first ever use of setattr. Knew it was there for something ;)
Hmmm.... Outside of playing with setattr, why not use:
Display.control_panel = self
--
-- Scott David Daniels
Scott.Daniels at Acm.Org
More information about the Edu-sig
mailing list