- %apply SWIGTYPE *DISOWN { wxDataObject *data };
+ %disownarg( wxDataObject *data );
DocDeclStr(
virtual bool , AddData( wxDataObject *data ),
:see: `wx.DataObject`", "");
-
- %clear wxDataObject *data;
+ %cleardisown( wxDataObject *data );
+
DocDeclStr(
virtual bool , IsSupported( const wxDataFormat& format ),
self._instance = None
def _checkInstance(self):
if self._instance is None:
- self._instance = self._initfunc(*self._args, **self._kwargs)
+ if wx.GetApp():
+ self._instance = self._initfunc(*self._args, **self._kwargs)
def __getattr__(self, name):
self._checkInstance()
return getattr(self._instance, name)