]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxGCDC(const wxWindow*)
authorRobin Dunn <robin@alldunn.com>
Tue, 7 Nov 2006 03:29:35 +0000 (03:29 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 7 Nov 2006 03:29:35 +0000 (03:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_graphics.i

index 067f952e04e414a8711554fa074d8e94c22803d8..07f7db2e239315008448e7ad627e40f241915763 100644 (file)
@@ -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();