controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 1485 a30776c43846
parent 1362 077bcba2d485
child 1497 7330c85534ea
--- a/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Tue Apr 19 12:15:51 2016 +0300
+++ b/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Tue Apr 19 12:16:29 2016 +0300
@@ -1363,7 +1363,8 @@
         
         # Get bitmap of figure rendered
         self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
-        self.bitmap.UseAlpha()
+        if wx.VERSION < (3, 0, 0):        
+            self.bitmap.UseAlpha()
         
         # Create DC for rendering graphics in bitmap
         destDC = wx.MemoryDC()