Re: Problem subclassing (Newbie)

2005-09-24 Thread Shahla Almasri
I finally figured what I was missing. I forgot to import my Widget class!!! I have imported Tkinter in the module for other GUI related stuff. So Python was testing my Button class against Tkinter's Widget class, and that's why the result was False. It finally made sense :) Thank you Anand and

Problem subclassing (Newbie)

2005-09-23 Thread Shahla Almasri
Hi, I'm new to Python, so forgive me if I'm missing something obvious here. All what I am trying to do is create a hirarachy of objects (i.e. one that inherits from another). But for somereason my subclasses are not recognizing their superclass! I have the following: class Widget(object): de