"Adonis" <ad*****@REMTHI Searthlink.net> wrote in message news:<jc******* **********@news read2.news.atl. earthlink.net>. ..
I am creating some widgets by inheriting from Tkinter.Frame and populating
the frame with whatever the widget will be then creating certain
attributes/methods to be accessed later. My question is, is this a poper way
to create widgets or should I take a different approach?
Any help is greatly appreciated.
Adonis
So far this sounds perfectly "proper" to me.
Usually when I create my own widgets it looks like:
class Mywidget(Tkinte r.Frame):
def __init__(self, master, special_attribu te='default', *args, **kw):
Tkinter.Frame._ _init__(self, master, *args, **kw)
<widget's contents......>
def widget_method1( self):
<.......>
(etc.)
Sounds like you are doing quite the same.
Regards
Michael