bitmap in wx3.0 doesn't have useAlpha() method
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 19 Apr 2016 12:16:29 +0300
changeset 1485 a30776c43846
parent 1484 d5efbb20927e
child 1486 f1f767545935
bitmap in wx3.0 doesn't have useAlpha() method
controls/DebugVariablePanel/DebugVariableGraphicViewer.py
--- 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()