Scroll bar animations when using double buffering

ioprst <[email protected]> Mon, 11 Jan 2021 01:45:26 -0800 (PST)
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Hello!

I am drawing a grid in the cells of which the images will be located 
(wx.Bitmap).

I need to use double buffering to get rid of the flickering (the flickering 
appears when I draw the cursor (a square on the selected cell)).

I noticed that when using double buffering, the EVT_PAINT handler is called 
even when I hover over the scrollbar. In this case, the animation of the 
scroll bar (smooth color change) occurs in jerks. Without double buffering, 
the animation is smooth.

Is there a way to solve this problem?

Code: https://ideone.com/odZ2dp

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/438641d4-3c4c-4c72-9468-6f6e27898702n%40googlegroups.com.