Robins Gupta
Robins Gupta

Reputation: 3153

Wxpython How to change the colour of Gauge Progress bar in windows

I am designing a software in Python using WxPython as GUI in Windows.I want to change the default colour of Gauge Progress bar in my application. Please help... Thanks in advance..

Upvotes: 1

Views: 1490

Answers (1)

Mike Driscoll
Mike Driscoll

Reputation: 33071

You can try something like SetForegroundColour or SetBackgrounColour, but since the gauge wraps the native widget, I'm not sure that those will have any effect. Fortunately, there is a generic gauge widget called PyGauge: wx.lib.agw.pygauge

I don't think it's quite as pretty as the native one, but you can definitely change the color. There are a couple examples of PyGauge in the wxPython demo package.

Upvotes: 2

Related Questions