Add virtualCatcherCode for TaskBarIcon.CreatePopupMenu

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-03-07 03:54:00 +00:00
parent c61c447edf
commit b20b30e8b8

View File

@@ -53,7 +53,19 @@ def run():
c = module.find('wxTaskBarIcon')
c.find('CreatePopupMenu').ignore(False)
method = c.find('CreatePopupMenu')
method.ignore(False)
method.transfer = True
method.virtualCatcherCode = """\
// VirtualCatcherCode for wxTaskBarIcon.CreatePopupMenu
PyObject *sipResObj = sipCallMethod(0, sipMethod, "");
sipParseResult(0, sipMethod, sipResObj, "H0", sipType_wxMenu, &sipRes);
if (sipRes) {
sipTransferTo(sipResObj, Py_None);
}
"""
c.find('Destroy').transferThis = True
c.addCppMethod('bool', 'ShowBalloon', '(const wxString& title, const wxString& text,'