mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
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:
11
etg/icon.py
11
etg/icon.py
@@ -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
|
||||
""")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user