We have a large custom engineering C++ library that we’ve wrapped with SWIG - for the most part, successfully. The library includes a multiplexed logger, which among other things allows us to add multiple ourput streams to the same logger object. Using wxWidgets, we can create a wxTextCtrl, and add it to our multiplexor - because wxTextCtrl extends streambuf. However, I cannot get wx.TextCtrl to do the same from Python (as far as I can tell, we successfully wrapped the std methods of our logger class). Documentation has been a bit thin on the subject. Before I go to the source (and potentially waste a lot of time on a lost cause - we need to use the default distrb bins), can someone explain how wxTextCtrl is wrapped for python? Does it use make the header change to toggle off streams?
Hello,
We have a large custom engineering C++ library that we've wrapped with SWIG - for the most part, successfully. The library includes a multiplexed logger, which among other things allows us to add multiple ourput streams to the same logger object. Using wxWidgets, we can create a wxTextCtrl, and add it to our multiplexor - because wxTextCtrl extends streambuf. However, I cannot get wx.TextCtrl to do the same from Python (as far as I can tell, we successfully wrapped the std methods of our logger class). Documentation has been a bit thin on the subject. Before I go to the source (and potentially waste a lot of time on a lost cause - we need to use the default distrb bins), can someone explain how wxTextCtrl is wrapped for python? Does it use make the header change to toggle off streams?
No it's there in the C++ class, but the class definition given to SWIG doesn't have any info about the streambuf base or methods exposed. I didn't think there would be much call for it and decided to not add the bloat.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!