mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
AllowNone for wxDVCVariant, like wxVariant
This commit is contained in:
@@ -28,7 +28,10 @@ wxVariant wxDVCVariant_in_helper(PyObject* source)
|
||||
{
|
||||
wxVariant ret;
|
||||
|
||||
if (wxPyWrappedPtr_TypeCheck(source, wxT("wxDataViewIconText"))) {
|
||||
if (source == Py_None) {
|
||||
ret.MakeNull();
|
||||
}
|
||||
else if (wxPyWrappedPtr_TypeCheck(source, wxT("wxDataViewIconText"))) {
|
||||
wxDataViewIconText* ptr;
|
||||
wxPyConvertWrappedPtr(source, (void**)&ptr, wxT("wxDataViewIconText"));
|
||||
ret << *ptr;
|
||||
@@ -57,7 +60,7 @@ PyObject* wxDVCVariant_out_helper(const wxVariant& value)
|
||||
|
||||
|
||||
|
||||
%MappedType wxDVCVariant
|
||||
%MappedType wxDVCVariant /AllowNone/
|
||||
{
|
||||
%ConvertToTypeCode
|
||||
// Code to test a PyObject for compatibility.
|
||||
|
||||
Reference in New Issue
Block a user