Pmw subclassing problem

Robin Becker robin at jessikat.fsnet.co.uk
Sun Jul 1 14:03:58 EDT 2001


In article <slrn9juod6.or.matt at happy-hour.mondoinfo.com>, Matthew Dixon
Cowles <matt at mondoinfo.com> writes
..
...
>at am I doing wrong?
>>Am I missing some class bindins somewhere?
>
>Robin,
>I think you're missing one line of Pmw magic. This code seems to work:
>
>class RL_ScrolledText(Pmw.ScrolledText):
>  def __init__(self,*args,**kw):
>    apply(Pmw.ScrolledText.__init__,(self,)+args,kw)
>    self.initialiseoptions(RL_ScrolledText)
>
>There's more about subclassing Pmw widgets at:
>
>http://pmw.sourceforge.net/doc/howtobuild.html
>
>Regards,
>Matt
thanks, that fixes it. I missed it in the how to build document.
-- 
Robin Becker



More information about the Python-list mailing list