]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/gdi.py
fixed bug in generation of thumb scroll events
[wxWidgets.git] / wxPython / src / msw / gdi.py
index 58affdf548437755b77730f7c602ec298ca0530b..9ab2cec48ff89a0bdd4c6e3d553fe587c09af31b 100644 (file)
@@ -857,18 +857,23 @@ class wxBufferedDCPtr(wxMemoryDCPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
+    def UnMask(self, *_args, **_kwargs):
+        val = apply(gdic.wxBufferedDC_UnMask,(self,) + _args, _kwargs)
+        return val
     def __repr__(self):
         return "<C wxBufferedDC instance at %s>" % (self.this,)
 class wxBufferedDC(wxBufferedDCPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(gdic.new_wxBufferedDC,_args,_kwargs)
         self.thisown = 1
+        self._dc = _args[0] # save a ref so the other dc won't be deleted before self
 
 
 
 def wxBufferedDCInternalBuffer(*_args,**_kwargs):
     val = wxBufferedDCPtr(apply(gdic.new_wxBufferedDCInternalBuffer,_args,_kwargs))
     val.thisown = 1
+    val._dc = _args[0] # save a ref so the other dc won't be deleted before self
     return val