Menu

Commit [r5923]  Maximize  Restore  History

special case contains test for degenerate rectangle

jdh2358 2008-07-29

changed /trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
/trunk/matplotlib/lib/matplotlib/backends/backend_wx.py Diff Switch to side-by-side view
--- a/trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
+++ b/trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
@@ -696,6 +696,10 @@
         except AttributeError:
             self.SetInitialSize = getattr(self, 'SetBestFittingSize', do_nothing)
 
+
+        if not hasattr(self,'IsShownOnScreen'):
+            self.IsShownOnScreen = self.IsVisible
+
         # Create the drawing bitmap
         self.bitmap =wx.EmptyBitmap(w, h)
         DEBUG_MSG("__init__() - bitmap w:%d h:%d" % (w,h), 2, self)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.