Change the scroll bar color

All,

Is there a way to change the scroll bar color of the wx.lib.scrolledpanel panel? I tried to iterate over the children of the wx.lib.scrolledpanel panel, but I didn’t find a wx.ScrollBar instance. I also used the wxPython Widget Inspection Tool, but it can’t seen to find the scroll bar either.

Thanks,

No ideas??

I don’t think it’s supported, but you can try the tip here: python - wxPython: Is there a way to change the colour of the Scrollbar in a wx.ScrolledWindow? - Stack Overflow

Also note that Robin answered a similar question here: Redirecting to Google Groups

Because wxPython wraps native widgets, the native widget itself must support that operation. If it does not, then neither will wxPython unless you happen to be using a generic (i.e. custom) widget which does support it.

  • Mike
···

On Wednesday, February 12, 2014 8:44:23 PM UTC-6, Jason Terhune wrote:

No ideas??

Thanks for your time Mike. I had already tried the stackoverflow suggestion, but it will not work - on my platform at least. Win7, wx3.0, py26
I wanted to color the scroll bars because rarely on the init of the scrolled window panel the content of the panel will be too large for the panel to contain without scroll bars. Since this is a rare event, I wanted to “make it obvious” to the user scroll bars were available. No big deal. Maybe I can inform them in some other way.

Thanks, Jason

···

On Thursday, February 13, 2014 8:34:58 AM UTC-6, Mike Driscoll wrote:

On Wednesday, February 12, 2014 8:44:23 PM UTC-6, Jason Terhune wrote:

No ideas??

I don’t think it’s supported, but you can try the tip here: https://stackoverflow.com/questions/14151659/wxpython-is-there-a-way-to-change-the-colour-of-the-scrollbar-in-a-wx-scrolledw

Also note that Robin answered a similar question here: https://groups.google.com/forum/#!topic/wxpython-users/pieWeVnz4gw

Because wxPython wraps native widgets, the native widget itself must support that operation. If it does not, then neither will wxPython unless you happen to be using a generic (i.e. custom) widget which does support it.

  • Mike

I don’t think it’s supported, but you can try the tip here: https://stackoverflow.com/questions/14151659/wxpython-is-there-a-way-to-change-the-colour-of-the-scrollbar-in-a-wx-scrolledw

Also note that Robin answered a similar question here: https://groups.google.com/forum/#!topic/wxpython-users/pieWeVnz4gw

Because wxPython wraps native widgets, the native widget itself must support that operation. If it does not, then neither will wxPython unless you happen to be using a generic (i.e. custom) widget which does support it.

  • Mike

Thanks for your time Mike. I had already tried the stackoverflow suggestion, but it will not work - on my platform at least. Win7, wx3.0, py26
I wanted to color the scroll bars because rarely on the init of the scrolled window panel the content of the panel will be too large for the panel to contain without scroll bars. Since this is a rare event, I wanted to “make it obvious” to the user scroll bars were available. No big deal. Maybe I can inform them in some other way.

Thanks, Jason

You could alert them via the status bar.

  • Mike

wx.InfoBar would work or maybe wx.NotificationMessage if you want a popup taskbar style approach to this.

···

On Thursday, February 13, 2014 9:24:24 AM UTC-6, Jason Terhune wrote:

On Thursday, February 13, 2014 8:34:58 AM UTC-6, Mike Driscoll wrote:

On Wednesday, February 12, 2014 8:44:23 PM UTC-6, Jason Terhune wrote:

No ideas??

I don’t think it’s supported, but you can try the tip here: https://stackoverflow.com/questions/14151659/wxpython-is-there-a-way-to-change-the-colour-of-the-scrollbar-in-a-wx-scrolledw

Also note that Robin answered a similar question here: https://groups.google.com/forum/#!topic/wxpython-users/pieWeVnz4gw

Because wxPython wraps native widgets, the native widget itself must support that operation. If it does not, then neither will wxPython unless you happen to be using a generic (i.e. custom) widget which does support it.

  • Mike

Thanks for your time Mike. I had already tried the stackoverflow suggestion, but it will not work - on my platform at least. Win7, wx3.0, py26
I wanted to color the scroll bars because rarely on the init of the scrolled window panel the content of the panel will be too large for the panel to contain without scroll bars. Since this is a rare event, I wanted to “make it obvious” to the user scroll bars were available. No big deal. Maybe I can inform them in some other way.

Thanks, Jason

Thanks for the suggestions.

···

On Thursday, February 13, 2014 2:10:09 PM UTC-6, Metallicow wrote:

On Thursday, February 13, 2014 9:24:24 AM UTC-6, Jason Terhune wrote:

On Thursday, February 13, 2014 8:34:58 AM UTC-6, Mike Driscoll wrote:

On Wednesday, February 12, 2014 8:44:23 PM UTC-6, Jason Terhune wrote:

No ideas??

I don’t think it’s supported, but you can try the tip here: https://stackoverflow.com/questions/14151659/wxpython-is-there-a-way-to-change-the-colour-of-the-scrollbar-in-a-wx-scrolledw

Also note that Robin answered a similar question here: https://groups.google.com/forum/#!topic/wxpython-users/pieWeVnz4gw

Because wxPython wraps native widgets, the native widget itself must support that operation. If it does not, then neither will wxPython unless you happen to be using a generic (i.e. custom) widget which does support it.

  • Mike

Thanks for your time Mike. I had already tried the stackoverflow suggestion, but it will not work - on my platform at least. Win7, wx3.0, py26
I wanted to color the scroll bars because rarely on the init of the scrolled window panel the content of the panel will be too large for the panel to contain without scroll bars. Since this is a rare event, I wanted to “make it obvious” to the user scroll bars were available. No big deal. Maybe I can inform them in some other way.

Thanks, Jason

wx.InfoBar would work or maybe wx.NotificationMessage if you want a popup taskbar style approach to this.