From 49f7b879bda4e86690b0799abde08748f07359f3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 7 Nov 2006 03:29:35 +0000 Subject: [PATCH] Add wxGCDC(const wxWindow*) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_graphics.i | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wxPython/src/_graphics.i b/wxPython/src/_graphics.i index 067f952e04..07f7db2e23 100644 --- a/wxPython/src/_graphics.i +++ b/wxPython/src/_graphics.i @@ -285,6 +285,13 @@ public: wxPyEndBlockThreads(blocked); } + wxGCDC(const wxWindow*) { + wxPyBlock_t blocked = wxPyBeginBlockThreads(); + PyErr_SetString(PyExc_NotImplementedError, + "wxGCDC is not available on this platform."); + wxPyEndBlockThreads(blocked); + } + wxGCDC() { wxPyBlock_t blocked = wxPyBeginBlockThreads(); PyErr_SetString(PyExc_NotImplementedError, @@ -999,9 +1006,11 @@ public : class wxGCDC: public wxDC { public: + %nokwargs wxGCDC; %pythonAppend wxGCDC "self.__dc = args[0] # save a ref so the other dc will not be deleted before self"; wxGCDC(const wxWindowDC& dc); + wxGCDC(wxWindow* window); //wxGCDC(); virtual ~wxGCDC(); -- 2.47.2