Save a reference to the DC

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-10-04 03:28:49 +00:00
parent 2f34cf6090
commit 0e4e601244

View File

@ -230,6 +230,8 @@ public:
// wxGraphicsContext() This is also an ABC, use Create to make an instance...
virtual ~wxGraphicsContext();
%pythonAppend Create
"val.__dc = args[0] # save a ref so the other dc will not be deleted before self";
static wxGraphicsContext* Create( const wxWindowDC& dc);
// creates a path instance that corresponds to the type of graphics context, ie GDIPlus, cairo, CoreGraphics ...
@ -437,6 +439,8 @@ public:
class wxGCDC: public wxDC
{
public:
%pythonAppend wxGCDC
"self.__dc = args[0] # save a ref so the other dc will not be deleted before self";
wxGCDC(const wxWindowDC& dc);
//wxGCDC();
virtual ~wxGCDC();