From 674afe9bfaec0ba29dcd7ee3b43adc6da1b24730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Tue, 9 Jan 2018 05:07:04 +0100 Subject: [PATCH] MiRCARTCanvas.py: enable double buffering to eliminate brush flickering. --- MiRCARTCanvas.py | 1 + 1 file changed, 1 insertion(+) diff --git a/MiRCARTCanvas.py b/MiRCARTCanvas.py index db8d440..b2e0021 100644 --- a/MiRCARTCanvas.py +++ b/MiRCARTCanvas.py @@ -178,6 +178,7 @@ class MiRCARTCanvas(wx.Panel): def __init__(self, parent, parentFrame, canvasPos, canvasSize, cellSize): super().__init__(parent, pos=canvasPos, \ size=[w*h for w,h in zip(canvasSize, cellSize)]) + self.SetDoubleBuffered(True) self.parentFrame = parentFrame self.canvasMap = None; self.canvasPos = canvasPos; self.canvasSize = canvasSize;