Pmw subclassing problem
Robin Becker
robin at jessikat.fsnet.co.uk
Sun Jul 1 12:25:34 EDT 2001
I'm sure the cause of this must be obvious, I want to specialise a scrolled text. The
existing one shows all the right behaviours, but when I recode to use the trivial
subclass
class RL_ScrolledText(Pmw.ScrolledText):
def __init__(self,*args,**kw):
apply(Pmw.ScrolledText.__init__,(self,)+args,kw)
and change the client code to match
ie change Pmw. to RL_
self.log = RL_ScrolledText(mainlog.pane('log'), labelpos = 'n', label_text = 'Log')
I seem to lose the automatic scroll bars etc, what am I doing wrong? Am I missing some
class bindins somewhere?
--
Robin Becker
More information about the Python-list
mailing list