%{
-//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
+IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
{
if (owner == NULL) SetOwner(this);
}
-
-
-void wxPyTimer::Notify() {
- bool found;
- wxPyBlock_t blocked = wxPyBeginBlockThreads();
- if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
- wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
- wxPyEndBlockThreads(blocked);
- if (! found)
- wxTimer::Notify();
-}
-void wxPyTimer::base_Notify() {
- wxTimer::Notify();
-}
-
%}
// override this in your wxTimer-derived class if you want to process timer
// messages in it, use non default ctor or SetOwner() otherwise
- //virtual void Notify();
+ virtual void Notify();
// return True if the timer is running
virtual bool IsRunning() const;
int GetId() const;
%pythoncode {
- def Destroy():
+ def Destroy(self):
"""NO-OP: Timers must be destroyed by normal refrence counting"""
pass
}