trouble with Pmw.Color.changecolor
mhearne808 at yahoo.com
Thu Jan 30 19:23:09 CET 2003
Chad Netzer <cnetzer at mail.arc.nasa.gov> wrote in message news:<mailman.1043903454.24215.python-list at python.org>...
> On Wed, 2003-01-29 at 20:05, Mike Hearne wrote:
> > 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.
> On the same configuration, it works for me. It might be some crazy
> XWindows problem (default background color, or some wierd thing). Can
> you try testing it elsewhere?
> What happens if you set the background color of a Frame just using Tk
> (w/o Pmw)?
Chad - I tried the same thing last night with a Tk Text widget, and it
worked fine. I can try to test it on my girlfriend's W2k laptop, if
she'll let me install Python on it...:)
More information about the Python-list