MiRCARTCanvas.py: enable double buffering to eliminate brush flickering.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-09 05:07:04 +01:00
parent dec1e4c0d4
commit 363a86fe81

View File

@ -178,6 +178,7 @@ class MiRCARTCanvas(wx.Panel):
def __init__(self, parent, parentFrame, canvasPos, canvasSize, cellSize): def __init__(self, parent, parentFrame, canvasPos, canvasSize, cellSize):
super().__init__(parent, pos=canvasPos, \ super().__init__(parent, pos=canvasPos, \
size=[w*h for w,h in zip(canvasSize, cellSize)]) size=[w*h for w,h in zip(canvasSize, cellSize)])
self.SetDoubleBuffered(True)
self.parentFrame = parentFrame self.parentFrame = parentFrame
self.canvasMap = None; self.canvasPos = canvasPos; self.canvasSize = canvasSize; self.canvasMap = None; self.canvasPos = canvasPos; self.canvasSize = canvasSize;