void UsePrimarySelection( int primary = FALSE );
};
+
+%readonly
%{
- // See below in the init function...
- wxClipboard* wxPyTheClipboard;
+#if 0
+%}
+// See also wxPy_ReinitStockObjects in helpers.cpp
+extern wxClipboard* wxTheClipboard;
+%{
+#endif
%}
-%readonly
-%name(wxTheClipboard) wxClipboard* wxPyTheClipboard;
%readwrite
//----------------------------------------------------------------------
%{
class wxPyDropSource : public wxDropSource {
public:
-#ifdef __WXMSW__
+#ifndef __WXGTK__
wxPyDropSource(wxWindow *win = NULL,
const wxCursor © = wxNullCursor,
const wxCursor &move = wxNullCursor,
%name(wxDropSource) class wxPyDropSource {
public:
-#ifdef __WXMSW__
+#ifndef __WXGTK__
wxPyDropSource(wxWindow *win = NULL,
const wxCursor © = wxNullCursor,
const wxCursor &move = wxNullCursor,
%init %{
- wxPyTheClipboard = wxTheClipboard;
wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");