trouble with Pmw.Color.changecolor

Mike Hearne mhearne808 at yahoo.com
Wed Jan 29 23:05:30 EST 2003


Hi - According to the documentation, the following should work:

>>> from Tkinter import *
>>> import Pmw
>>> root = Tk()
>>> st = Pmw.ScrolledText(root,hull_width=200,hull_height=200)
>>> st.pack()
>>> hull = st.component('hull')
>>> Pmw.Color.changecolor(hull,background='black',foreground='green')

When I run this (RedHat Linux 8.0, Python 2.2.1, Pmw 1.1), I get a
green foreground color, but my background color is still white.  I can
set foreground color to anything I like, but nothing has an effect on
background color.

Am I missing something?

Thanks,

Mike




More information about the Python-list mailing list