mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
Add proper support for DataViewCheckIconTextRenderer
This commit is contained in:
@@ -24,6 +24,7 @@ ITEMS = [
|
||||
'wxDataViewItem',
|
||||
'wxDataViewItemAttr',
|
||||
'wxDataViewIconText',
|
||||
'wxDataViewCheckIconText',
|
||||
'wxDataViewModelNotifier',
|
||||
|
||||
'wxDataViewModel',
|
||||
@@ -308,6 +309,7 @@ def run():
|
||||
# them in all these classes
|
||||
for name in [ 'wxDataViewTextRenderer',
|
||||
'wxDataViewIconTextRenderer',
|
||||
'wxDataViewCheckIconTextRenderer',
|
||||
'wxDataViewProgressRenderer',
|
||||
'wxDataViewSpinRenderer',
|
||||
'wxDataViewToggleRenderer',
|
||||
|
@@ -31,6 +31,11 @@ wxVariant wxDVCVariant_in_helper(PyObject* source)
|
||||
if (source == Py_None) {
|
||||
ret.MakeNull();
|
||||
}
|
||||
else if (wxPyWrappedPtr_TypeCheck(source, wxT("wxDataViewCheckIconText"))) {
|
||||
wxDataViewCheckIconText* ptr;
|
||||
wxPyConvertWrappedPtr(source, (void**)&ptr, wxT("wxDataViewCheckIconText"));
|
||||
ret << *ptr;
|
||||
}
|
||||
else if (wxPyWrappedPtr_TypeCheck(source, wxT("wxDataViewIconText"))) {
|
||||
wxDataViewIconText* ptr;
|
||||
wxPyConvertWrappedPtr(source, (void**)&ptr, wxT("wxDataViewIconText"));
|
||||
@@ -45,8 +50,13 @@ wxVariant wxDVCVariant_in_helper(PyObject* source)
|
||||
PyObject* wxDVCVariant_out_helper(const wxVariant& value)
|
||||
{
|
||||
PyObject* ret;
|
||||
|
||||
if ( value.IsType("wxDataViewIconText") )
|
||||
if (value.IsType("wxDataViewCheckIconText") )
|
||||
{
|
||||
wxDataViewCheckIconText val;
|
||||
val << value;
|
||||
ret = wxPyConstructObject(new wxDataViewCheckIconText(val), wxT("wxDataViewCheckIconText"), 0);
|
||||
}
|
||||
else if ( value.IsType("wxDataViewIconText") )
|
||||
{
|
||||
wxDataViewIconText val;
|
||||
val << value;
|
||||
|
Reference in New Issue
Block a user