Sorry I got this figured out 5 days ago.  I figured the moderator deleted for 
being such a moronic question.:)



On Friday 04 January 2002 03:48 pm, Craig Hurley wrote:
> I have been plowing through docs and books for a day trying to answer
> this to not avail.  If someone could answer or point me to docs I would
> be very happy.
> I'm sure it is a simple case that I over looked somewhere.
> 
> I have 2 classes that are tk windows, one is a child of the other.
> At the top level of the file the parent is made as 'app'. The child
> class is spawned from inside the parent class.  When the child class is
> started several buttons of the parent class need to be DISABLED(better
> safe that sorry stuff).  The child instance assumes the instance name of
> the parent, app.  I know this is sloppy.
> I need to know how to access the parent instance from the child
> instance.
> I have tried global and __main__.app and that doesn't work.
> 
> the code looks like:
> 
> class parent:
>     self.button.config(state=NORMAL)
> 
>     def open_child(self):
>         kid = child()
> 
> class child(parent):
>     app.button.config(state=DISABLED)
> 
> app = parent()
> 
> 
> Thanks for any help.
> 
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activepython
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to