Dec. 18, 2004
11:56 p.m.
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@Acm.Org