corrected %addtofunc for BufferedDC constructor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-02-17 16:00:03 +00:00
parent 09f27917fb
commit e608d2285c
2 changed files with 6 additions and 4 deletions

View File

@ -585,10 +585,8 @@ enum
class wxBufferedDC : public wxMemoryDC
{
public:
%pythonAppend wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
%pythonAppend wxBufferedDC
"self._dc = args[0] # save a ref so the other dc will not be deleted before self";
%pythonAppend wxBufferedDC( wxDC *dc, const wxSize &area, int flags = wxBUFFER_DC_DEFAULT )
"val._dc = args[0] # save a ref so the other dc will not be deleted before self";
%nokwargs wxBufferedDC;
@ -600,9 +598,13 @@ public:
// being buffered)
wxBufferedDC( wxDC *dc, const wxSize &area, int flags = wxBUFFER_DC_DEFAULT );
// TODO: Keep this one too?
%pythonAppend wxBufferedDC( wxDC *dc, const wxSize &area, int flags = wxBUFFER_DC_DEFAULT )
"val._dc = args[0] # save a ref so the other dc will not be deleted before self";
%name(BufferedDCInternalBuffer) wxBufferedDC( wxDC *dc, const wxSize &area, int flags = wxBUFFER_DC_DEFAULT );
// Blits the buffer to the dc, and detaches the dc from
// the buffer. Usually called in the dtor or by the dtor
// of derived classes if the BufferedDC must blit before

View File

@ -2829,7 +2829,7 @@ class BufferedDC(MemoryDC):
self.this = newobj.this
self.thisown = 1
del newobj.thisown
val._dc = args[0] # save a ref so the other dc will not be deleted before self
self._dc = args[0] # save a ref so the other dc will not be deleted before self
def UnMask(*args, **kwargs):
"""UnMask()"""