python - Drawing a rubberband on a panel without redrawing everything in wxpython -


i use wx.paintdc() draw shapes on panel. after drawing shapes, when left click , drag mouse, rubberband (transparent rectangle) drawn on shapes. while dragging mouse, each motion of mouse, evt_paint sent , (all shapes , rectangle) redrawn.

how draw rubberband on existing shapes (i don't want redraw shapes), mean, nice if can save existing shapes on dc object , draw rubberband on it. application draw faster.

you presumably want have @ wx.overlay. here example.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -