X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4617be085fb55acce74f4d4687b098918dc9d107..26ee65c723cf55822c540506f064ec11d9b26858:/wxPython/src/_taskbar.i?ds=sidebyside diff --git a/wxPython/src/_taskbar.i b/wxPython/src/_taskbar.i index 1a5ea7b228..8bde975e47 100644 --- a/wxPython/src/_taskbar.i +++ b/wxPython/src/_taskbar.i @@ -101,12 +101,14 @@ MustHaveApp(wxPyTaskBarIcon); class wxPyTaskBarIcon : public wxEvtHandler { public: - %pythonAppend wxPyTaskBarIcon "self._setCallbackInfo(self, TaskBarIcon, 0)" + %pythonAppend wxPyTaskBarIcon setCallbackInfo(TaskBarIcon) wxPyTaskBarIcon(); + ~wxPyTaskBarIcon(); - void _setCallbackInfo(PyObject* self, PyObject* _class, int incref); + void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=0); + %pythonPrepend Destroy "args[0].this.own(False)"; %extend { void Destroy() { self->RemoveIcon(); @@ -141,6 +143,7 @@ public: %constant wxEventType wxEVT_TASKBAR_RIGHT_UP; %constant wxEventType wxEVT_TASKBAR_LEFT_DCLICK; %constant wxEventType wxEVT_TASKBAR_RIGHT_DCLICK; +%constant wxEventType wxEVT_TASKBAR_CLICK; %pythoncode { @@ -151,6 +154,7 @@ EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) +EVT_TASKBAR_CLICK = wx.PyEventBinder ( wxEVT_TASKBAR_CLICK ) } //---------------------------------------------------------------------------