Skip to content Skip to sidebar Skip to footer

PyGauge (wxPython Phoenyx) Does Not Expand With Frame

I wanted to add a couple or marks into a wx.pyGauge to indicate min, max custom limits. This is the code: import wx from wx.lib.agw.pygauge import PyGauge as PG # # class AFrame(wx

Solution 1:

On Windows, by default, only the newly exposed areas of a window are painted on resizes and the rest is clipped out of the update region. So although your onPaint is being called, the existing parts of the window are excluded from the drawing region. The easiest way to avoid this is to use the wx.FULL_REPAINT_ON_RESIZE style when creating the widget, however you may then need to deal with some extra flicker in some cases.


Post a Comment for "PyGauge (wxPython Phoenyx) Does Not Expand With Frame"