hi,
I cannot see color in pyprogress sample.
window is
and after half time :
There is no color. Is it expected?
platform windows10
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
wxPython 4.2.0
code to reproduce
import wx
import wx.lib.agw.pyprogress as PP
# Our normal wxApp-derived class, as usual
app = wx.App(0)
dlg = PP.PyProgress(None, -1, "PyProgress Example",
"An Informative Message",
agwStyle=wx.PD_APP_MODAL | wx.PD_ELAPSED_TIME)
dlg.SetGaugeProportion(0.4)
dlg.SetGaugeSteps(50)
dlg.SetGaugeBackground(wx.BLACK)
dlg.SetFirstGradientColour(wx.WHITE)
dlg.SetSecondGradientColour(wx.BLUE)
max = 400
keepGoing = 1
count = 0
while keepGoing and count < max:
count += 1
wx.MilliSleep(30)
if count >= max // 2:
keepGoing = dlg.UpdatePulse("Half-time!")
else:
keepGoing = dlg.UpdatePulse()
dlg.Destroy()
app.MainLoop()