some minor fixes for wxIcon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-11-24 01:41:37 +00:00
parent 58939ed762
commit 617698bcd3

View File

@@ -36,17 +36,18 @@ def run():
c.find('wxIcon').findOverload('*bits').ignore()
c.find('wxIcon').findOverload('bits[]').ignore()
c.find('wxIcon.type').default = 'wxBITMAP_TYPE_ANY'
c.find('wxIcon.type').default = 'wxBITMAP_TYPE_ANY'
c.find('LoadFile.type').default = 'wxBITMAP_TYPE_ANY'
c.find('ConvertToDisabled').ignore()
c.addCppMethod('int', '__nonzero__', '()', """\
return self->IsOk();""")
c.addCppMethod('long', 'GetHandle', '()', """\
#ifdef __WXMSW__
return self->GetHandle();
return (long)self->GetHandle();
#else
return 0;
#endif
@@ -54,7 +55,7 @@ def run():
c.addCppMethod('void', 'SetHandle', '(long handle)', """\
#ifdef __WXMSW__
self->SetHandle((WXHANDLE)long);
self->SetHandle((WXHANDLE)handle);
#endif
""")