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