move default button handling code from wxControlContainer to wxTLW (patch 1524441)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-07-25 01:31:13 +00:00
parent 7cc4466989
commit b7681018cb
3 changed files with 10 additions and 3 deletions

View File

@@ -42,6 +42,12 @@ wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id)
if (owner == NULL)
SetOwner(this);
}
wxPyTimer::~wxPyTimer()
{
// printf("-=* ~wxPyTimer\n");
}
%}
@@ -55,7 +61,7 @@ public:
// there won't be a reference cycle and it can clean itself up via normal
// Python refcounting
%pythonAppend wxPyTimer
"self._setOORInfo(self, 0);" setCallbackInfo(Timer);
"self._setOORInfo(self,0); self.this.own(True); " setCallbackInfo(Timer);
// if you don't call SetOwner() or provide an owner in the ctor
// then you must override Notify() in order to receive the timer