Pmw ScrolledText background

student student00 at angelfire.com
Wed Mar 26 11:42:37 EST 2003


Hi,

I need to change the background color of a Pmw.ScrolledText widget

by default it is white ... i have the following code:

        self.st = Pmw.ScrolledText(parent,
                                   usehullsize = 1,
                                   hull_width = width,
                                   hull_height = height,
                                   text_padx = 5,
                                   text_pady = 5,
                                   text_font = ('Courier', 8),
                                   text_wrap='none'
                                   )

        self.st.pack(padx = 5, pady = 5, fill = 'both', expand = 1)
        text = self.st.component('text')
        Pmw.Color.changecolor(text, background = 'red')


however this only changes the highlight color...i'm not sure how to do
this ... i'd like the background of the widget to be the same as the
Windows grey color used in dialogs, buttons etc.

thanks.




More information about the Python-list mailing list