Hi, is there any reference document on wxPyLog?
I was looking for a convenient way of capturing user's action and I found
main.py in the demo used wxPyLog. But I couldn't find anything about wxPyLog
in the wxPython reference document.
Thanks.
YJ
Hi, is there any reference document on wxPyLog?
I was looking for a convenient way of capturing user's action and I found
main.py in the demo used wxPyLog. But I couldn't find anything about wxPyLog
in the wxPython reference document.
Thanks.
YJ
Hi, is there any reference document on wxPyLog?
I was looking for a convenient way of capturing user's action and I found
main.py in the demo used wxPyLog. But I couldn't find anything about
wxPyLog
in the wxPython reference document.
The "wxPy" is the naming convention I use for a C++ class derived from the
named wx class (wxLog in this case) that is Python-aware. The Python
awareness given to these classes is what lets you override C++ virtual
methods with Python methods, so when the C++ method is called the call is
forwarded to the Python method if it exists in the Python class.
For example, the DoLogMessage is one of these methods that is overridable in
Python if you derive wxPyLog, but will never be called from C++ if you
derive from wxLog.
So to answer your question, look at the docs for wxLog.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!