Hi all, I am fairly new to using both Python and wxPython, although I
am fairly experienced with C/C++ and wxWidgets. I am trying to use
Python and wxPython to construct a GUI front-end to my application. I
want to make some custom wxPython widgets that will be connected to
some C++ data structures.
One example is that I need to create a graphing widget. It should
contain a pointer to some graph data, and be able to draw it in the
wxDC. If I was implementing this in C++ and wxWidgets, I would just
subclass wxPanel or something, and include a pointer to the data in
the constructor. Then I could just put in the appropriate drawing
code. However, I need such a control to be usable form Python, and
thus I assume I need to somehow convert my wxWidgets widget into a
wxPython widget. I gather that I might need to use SWIG for this, but
I am very confused as to how all this works.
If someone could give me at least a broad overview, and maybe some
updated and accurate links, that would be excellent.
Thanks,
Chris Anderson