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
Post a Comment