wx.EvtHandler is OOR capable
docstring fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -22,6 +22,7 @@ public:
|
|||||||
// turn off this typemap
|
// turn off this typemap
|
||||||
%typemap(out) wxEvtHandler*;
|
%typemap(out) wxEvtHandler*;
|
||||||
|
|
||||||
|
%pythonAppend wxEvtHandler "self._setOORInfo(self)"
|
||||||
wxEvtHandler();
|
wxEvtHandler();
|
||||||
|
|
||||||
// Turn it back on again
|
// Turn it back on again
|
||||||
|
@@ -1035,42 +1035,48 @@ its own event handler.", "");
|
|||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
void , SetEventHandler( wxEvtHandler *handler ),
|
void , SetEventHandler( wxEvtHandler *handler ),
|
||||||
"Sets the event handler for this window. An event handler is an object
|
"Sets the event handler for this window. An event handler is an object
|
||||||
that is capable of processing the events sent to a window. By default,
|
that is capable of processing the events sent to a window. (In other
|
||||||
the window is its own event handler, but an application may wish to
|
words, is able to dispatch the events to handler function.) By
|
||||||
substitute another, for example to allow central implementation of
|
default, the window is its own event handler, but an application may
|
||||||
event-handling for a variety of different window classes.
|
wish to substitute another, for example to allow central
|
||||||
|
implementation of event-handling for a variety of different window
|
||||||
|
classes.
|
||||||
|
|
||||||
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
||||||
up a chain of event handlers, where an event not handled by one event
|
up a chain of event handlers, where an event not handled by one event
|
||||||
handler is handed to the next one in the chain.", "");
|
handler is handed off to the next one in the chain.", "");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
void , PushEventHandler( wxEvtHandler *handler ),
|
void , PushEventHandler( wxEvtHandler *handler ),
|
||||||
"Pushes this event handler onto the event handler stack for the window.
|
"Pushes this event handler onto the event handler stack for the window.
|
||||||
An event handler is an object that is capable of processing the events
|
An event handler is an object that is capable of processing the events
|
||||||
sent to a window. By default, the window is its own event handler, but
|
sent to a window. (In other words, is able to dispatch the events to
|
||||||
an application may wish to substitute another, for example to allow
|
handler function.) By default, the window is its own event handler,
|
||||||
central implementation of event-handling for a variety of different
|
but an application may wish to substitute another, for example to
|
||||||
window classes.
|
allow central implementation of event-handling for a variety of
|
||||||
|
different window classes.
|
||||||
|
|
||||||
wx.Window.PushEventHandler allows an application to set up a chain of
|
wx.Window.PushEventHandler allows an application to set up a chain of
|
||||||
event handlers, where an event not handled by one event handler is
|
event handlers, where an event not handled by one event handler is
|
||||||
handed to the next one in the chain. Use `wx.Window.PopEventHandler` to
|
handed to the next one in the chain. Use `wx.Window.PopEventHandler`
|
||||||
remove the event handler.", "");
|
to remove the event handler. Ownership of the handler is *not* given
|
||||||
|
to the window, so you should be sure to pop the handler before the
|
||||||
|
window is destroyed and either let PopEventHandler destroy it, or call
|
||||||
|
its Destroy method yourself.", "");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
wxEvtHandler *, PopEventHandler( bool deleteHandler = false ),
|
wxEvtHandler *, PopEventHandler( bool deleteHandler = false ),
|
||||||
"Removes and returns the top-most event handler on the event handler
|
"Removes and returns the top-most event handler on the event handler
|
||||||
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
||||||
destroyed after it is popped.", "");
|
destroyed after it is popped, and ``None`` will be returned instead.", "");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
bool , RemoveEventHandler(wxEvtHandler *handler),
|
bool , RemoveEventHandler(wxEvtHandler *handler),
|
||||||
"Find the given handler in the event handler chain and remove (but not
|
"Find the given handler in the event handler chain and remove (but not
|
||||||
delete) it from the event handler chain, return True if it was found
|
delete) it from the event handler chain, returns True if it was found
|
||||||
and False otherwise (this also results in an assert failure so this
|
and False otherwise (this also results in an assert failure so this
|
||||||
function should only be called when the handler is supposed to be
|
function should only be called when the handler is supposed to be
|
||||||
there.)", "");
|
there.)", "");
|
||||||
|
@@ -3369,6 +3369,8 @@ class EvtHandler(Object):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
"""__init__(self) -> EvtHandler"""
|
"""__init__(self) -> EvtHandler"""
|
||||||
_core_.EvtHandler_swiginit(self,_core_.new_EvtHandler(*args, **kwargs))
|
_core_.EvtHandler_swiginit(self,_core_.new_EvtHandler(*args, **kwargs))
|
||||||
|
self._setOORInfo(self)
|
||||||
|
|
||||||
def GetNextHandler(*args, **kwargs):
|
def GetNextHandler(*args, **kwargs):
|
||||||
"""GetNextHandler(self) -> EvtHandler"""
|
"""GetNextHandler(self) -> EvtHandler"""
|
||||||
return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
|
return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
|
||||||
@@ -8795,14 +8797,16 @@ class Window(EvtHandler):
|
|||||||
SetEventHandler(self, EvtHandler handler)
|
SetEventHandler(self, EvtHandler handler)
|
||||||
|
|
||||||
Sets the event handler for this window. An event handler is an object
|
Sets the event handler for this window. An event handler is an object
|
||||||
that is capable of processing the events sent to a window. By default,
|
that is capable of processing the events sent to a window. (In other
|
||||||
the window is its own event handler, but an application may wish to
|
words, is able to dispatch the events to handler function.) By
|
||||||
substitute another, for example to allow central implementation of
|
default, the window is its own event handler, but an application may
|
||||||
event-handling for a variety of different window classes.
|
wish to substitute another, for example to allow central
|
||||||
|
implementation of event-handling for a variety of different window
|
||||||
|
classes.
|
||||||
|
|
||||||
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
||||||
up a chain of event handlers, where an event not handled by one event
|
up a chain of event handlers, where an event not handled by one event
|
||||||
handler is handed to the next one in the chain.
|
handler is handed off to the next one in the chain.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_SetEventHandler(*args, **kwargs)
|
return _core_.Window_SetEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8812,15 +8816,19 @@ class Window(EvtHandler):
|
|||||||
|
|
||||||
Pushes this event handler onto the event handler stack for the window.
|
Pushes this event handler onto the event handler stack for the window.
|
||||||
An event handler is an object that is capable of processing the events
|
An event handler is an object that is capable of processing the events
|
||||||
sent to a window. By default, the window is its own event handler, but
|
sent to a window. (In other words, is able to dispatch the events to
|
||||||
an application may wish to substitute another, for example to allow
|
handler function.) By default, the window is its own event handler,
|
||||||
central implementation of event-handling for a variety of different
|
but an application may wish to substitute another, for example to
|
||||||
window classes.
|
allow central implementation of event-handling for a variety of
|
||||||
|
different window classes.
|
||||||
|
|
||||||
wx.Window.PushEventHandler allows an application to set up a chain of
|
wx.Window.PushEventHandler allows an application to set up a chain of
|
||||||
event handlers, where an event not handled by one event handler is
|
event handlers, where an event not handled by one event handler is
|
||||||
handed to the next one in the chain. Use `wx.Window.PopEventHandler` to
|
handed to the next one in the chain. Use `wx.Window.PopEventHandler`
|
||||||
remove the event handler.
|
to remove the event handler. Ownership of the handler is *not* given
|
||||||
|
to the window, so you should be sure to pop the handler before the
|
||||||
|
window is destroyed and either let PopEventHandler destroy it, or call
|
||||||
|
its Destroy method yourself.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_PushEventHandler(*args, **kwargs)
|
return _core_.Window_PushEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8830,7 +8838,7 @@ class Window(EvtHandler):
|
|||||||
|
|
||||||
Removes and returns the top-most event handler on the event handler
|
Removes and returns the top-most event handler on the event handler
|
||||||
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
||||||
destroyed after it is popped.
|
destroyed after it is popped, and ``None`` will be returned instead.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_PopEventHandler(*args, **kwargs)
|
return _core_.Window_PopEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8839,7 +8847,7 @@ class Window(EvtHandler):
|
|||||||
RemoveEventHandler(self, EvtHandler handler) -> bool
|
RemoveEventHandler(self, EvtHandler handler) -> bool
|
||||||
|
|
||||||
Find the given handler in the event handler chain and remove (but not
|
Find the given handler in the event handler chain and remove (but not
|
||||||
delete) it from the event handler chain, return True if it was found
|
delete) it from the event handler chain, returns True if it was found
|
||||||
and False otherwise (this also results in an assert failure so this
|
and False otherwise (this also results in an assert failure so this
|
||||||
function should only be called when the handler is supposed to be
|
function should only be called when the handler is supposed to be
|
||||||
there.)
|
there.)
|
||||||
|
@@ -3369,6 +3369,8 @@ class EvtHandler(Object):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
"""__init__(self) -> EvtHandler"""
|
"""__init__(self) -> EvtHandler"""
|
||||||
_core_.EvtHandler_swiginit(self,_core_.new_EvtHandler(*args, **kwargs))
|
_core_.EvtHandler_swiginit(self,_core_.new_EvtHandler(*args, **kwargs))
|
||||||
|
self._setOORInfo(self)
|
||||||
|
|
||||||
def GetNextHandler(*args, **kwargs):
|
def GetNextHandler(*args, **kwargs):
|
||||||
"""GetNextHandler(self) -> EvtHandler"""
|
"""GetNextHandler(self) -> EvtHandler"""
|
||||||
return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
|
return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
|
||||||
@@ -8795,14 +8797,16 @@ class Window(EvtHandler):
|
|||||||
SetEventHandler(self, EvtHandler handler)
|
SetEventHandler(self, EvtHandler handler)
|
||||||
|
|
||||||
Sets the event handler for this window. An event handler is an object
|
Sets the event handler for this window. An event handler is an object
|
||||||
that is capable of processing the events sent to a window. By default,
|
that is capable of processing the events sent to a window. (In other
|
||||||
the window is its own event handler, but an application may wish to
|
words, is able to dispatch the events to handler function.) By
|
||||||
substitute another, for example to allow central implementation of
|
default, the window is its own event handler, but an application may
|
||||||
event-handling for a variety of different window classes.
|
wish to substitute another, for example to allow central
|
||||||
|
implementation of event-handling for a variety of different window
|
||||||
|
classes.
|
||||||
|
|
||||||
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
||||||
up a chain of event handlers, where an event not handled by one event
|
up a chain of event handlers, where an event not handled by one event
|
||||||
handler is handed to the next one in the chain.
|
handler is handed off to the next one in the chain.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_SetEventHandler(*args, **kwargs)
|
return _core_.Window_SetEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8812,15 +8816,19 @@ class Window(EvtHandler):
|
|||||||
|
|
||||||
Pushes this event handler onto the event handler stack for the window.
|
Pushes this event handler onto the event handler stack for the window.
|
||||||
An event handler is an object that is capable of processing the events
|
An event handler is an object that is capable of processing the events
|
||||||
sent to a window. By default, the window is its own event handler, but
|
sent to a window. (In other words, is able to dispatch the events to
|
||||||
an application may wish to substitute another, for example to allow
|
handler function.) By default, the window is its own event handler,
|
||||||
central implementation of event-handling for a variety of different
|
but an application may wish to substitute another, for example to
|
||||||
window classes.
|
allow central implementation of event-handling for a variety of
|
||||||
|
different window classes.
|
||||||
|
|
||||||
wx.Window.PushEventHandler allows an application to set up a chain of
|
wx.Window.PushEventHandler allows an application to set up a chain of
|
||||||
event handlers, where an event not handled by one event handler is
|
event handlers, where an event not handled by one event handler is
|
||||||
handed to the next one in the chain. Use `wx.Window.PopEventHandler` to
|
handed to the next one in the chain. Use `wx.Window.PopEventHandler`
|
||||||
remove the event handler.
|
to remove the event handler. Ownership of the handler is *not* given
|
||||||
|
to the window, so you should be sure to pop the handler before the
|
||||||
|
window is destroyed and either let PopEventHandler destroy it, or call
|
||||||
|
its Destroy method yourself.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_PushEventHandler(*args, **kwargs)
|
return _core_.Window_PushEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8830,7 +8838,7 @@ class Window(EvtHandler):
|
|||||||
|
|
||||||
Removes and returns the top-most event handler on the event handler
|
Removes and returns the top-most event handler on the event handler
|
||||||
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
||||||
destroyed after it is popped.
|
destroyed after it is popped, and ``None`` will be returned instead.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_PopEventHandler(*args, **kwargs)
|
return _core_.Window_PopEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8839,7 +8847,7 @@ class Window(EvtHandler):
|
|||||||
RemoveEventHandler(self, EvtHandler handler) -> bool
|
RemoveEventHandler(self, EvtHandler handler) -> bool
|
||||||
|
|
||||||
Find the given handler in the event handler chain and remove (but not
|
Find the given handler in the event handler chain and remove (but not
|
||||||
delete) it from the event handler chain, return True if it was found
|
delete) it from the event handler chain, returns True if it was found
|
||||||
and False otherwise (this also results in an assert failure so this
|
and False otherwise (this also results in an assert failure so this
|
||||||
function should only be called when the handler is supposed to be
|
function should only be called when the handler is supposed to be
|
||||||
there.)
|
there.)
|
||||||
|
@@ -3369,6 +3369,8 @@ class EvtHandler(Object):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
"""__init__(self) -> EvtHandler"""
|
"""__init__(self) -> EvtHandler"""
|
||||||
_core_.EvtHandler_swiginit(self,_core_.new_EvtHandler(*args, **kwargs))
|
_core_.EvtHandler_swiginit(self,_core_.new_EvtHandler(*args, **kwargs))
|
||||||
|
self._setOORInfo(self)
|
||||||
|
|
||||||
def GetNextHandler(*args, **kwargs):
|
def GetNextHandler(*args, **kwargs):
|
||||||
"""GetNextHandler(self) -> EvtHandler"""
|
"""GetNextHandler(self) -> EvtHandler"""
|
||||||
return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
|
return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
|
||||||
@@ -8795,14 +8797,16 @@ class Window(EvtHandler):
|
|||||||
SetEventHandler(self, EvtHandler handler)
|
SetEventHandler(self, EvtHandler handler)
|
||||||
|
|
||||||
Sets the event handler for this window. An event handler is an object
|
Sets the event handler for this window. An event handler is an object
|
||||||
that is capable of processing the events sent to a window. By default,
|
that is capable of processing the events sent to a window. (In other
|
||||||
the window is its own event handler, but an application may wish to
|
words, is able to dispatch the events to handler function.) By
|
||||||
substitute another, for example to allow central implementation of
|
default, the window is its own event handler, but an application may
|
||||||
event-handling for a variety of different window classes.
|
wish to substitute another, for example to allow central
|
||||||
|
implementation of event-handling for a variety of different window
|
||||||
|
classes.
|
||||||
|
|
||||||
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
It is usually better to use `wx.Window.PushEventHandler` since this sets
|
||||||
up a chain of event handlers, where an event not handled by one event
|
up a chain of event handlers, where an event not handled by one event
|
||||||
handler is handed to the next one in the chain.
|
handler is handed off to the next one in the chain.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_SetEventHandler(*args, **kwargs)
|
return _core_.Window_SetEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8812,15 +8816,19 @@ class Window(EvtHandler):
|
|||||||
|
|
||||||
Pushes this event handler onto the event handler stack for the window.
|
Pushes this event handler onto the event handler stack for the window.
|
||||||
An event handler is an object that is capable of processing the events
|
An event handler is an object that is capable of processing the events
|
||||||
sent to a window. By default, the window is its own event handler, but
|
sent to a window. (In other words, is able to dispatch the events to
|
||||||
an application may wish to substitute another, for example to allow
|
handler function.) By default, the window is its own event handler,
|
||||||
central implementation of event-handling for a variety of different
|
but an application may wish to substitute another, for example to
|
||||||
window classes.
|
allow central implementation of event-handling for a variety of
|
||||||
|
different window classes.
|
||||||
|
|
||||||
wx.Window.PushEventHandler allows an application to set up a chain of
|
wx.Window.PushEventHandler allows an application to set up a chain of
|
||||||
event handlers, where an event not handled by one event handler is
|
event handlers, where an event not handled by one event handler is
|
||||||
handed to the next one in the chain. Use `wx.Window.PopEventHandler` to
|
handed to the next one in the chain. Use `wx.Window.PopEventHandler`
|
||||||
remove the event handler.
|
to remove the event handler. Ownership of the handler is *not* given
|
||||||
|
to the window, so you should be sure to pop the handler before the
|
||||||
|
window is destroyed and either let PopEventHandler destroy it, or call
|
||||||
|
its Destroy method yourself.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_PushEventHandler(*args, **kwargs)
|
return _core_.Window_PushEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8830,7 +8838,7 @@ class Window(EvtHandler):
|
|||||||
|
|
||||||
Removes and returns the top-most event handler on the event handler
|
Removes and returns the top-most event handler on the event handler
|
||||||
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
stack. If deleteHandler is True then the wx.EvtHandler object will be
|
||||||
destroyed after it is popped.
|
destroyed after it is popped, and ``None`` will be returned instead.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_PopEventHandler(*args, **kwargs)
|
return _core_.Window_PopEventHandler(*args, **kwargs)
|
||||||
|
|
||||||
@@ -8839,7 +8847,7 @@ class Window(EvtHandler):
|
|||||||
RemoveEventHandler(self, EvtHandler handler) -> bool
|
RemoveEventHandler(self, EvtHandler handler) -> bool
|
||||||
|
|
||||||
Find the given handler in the event handler chain and remove (but not
|
Find the given handler in the event handler chain and remove (but not
|
||||||
delete) it from the event handler chain, return True if it was found
|
delete) it from the event handler chain, returns True if it was found
|
||||||
and False otherwise (this also results in an assert failure so this
|
and False otherwise (this also results in an assert failure so this
|
||||||
function should only be called when the handler is supposed to be
|
function should only be called when the handler is supposed to be
|
||||||
there.)
|
there.)
|
||||||
|
Reference in New Issue
Block a user