hi, I have a wxwidget c++ code and just wonder if there is any tool that can automatically convert it to wxpython code?
thanks,
anstoss
···
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
hi, I have a wxwidget c++ code and just wonder if there is any tool that can automatically convert it to wxpython code?
thanks,
anstoss
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Automatically convert?
I cannot imagine that this is doable.
But you can help yourself with some tricks.
Once I "converted" the sample from wxWidgets (Bombs)
to wxPython.
I used an editor with good Keyboard macro capability.
(For example removing all ';' at the end of the lines).
Then for example i replaced all wxSomething to wx.Something.
Replace all class variables with self.<variable>...
At last you should review your code (Many things are
shorter and better in Python as in C++).
On Sun, 18 Dec 2005 18:23:07 -0800 (PST), Anstoss <anstoss214@yahoo.com> wrote:
hi, I have a wxwidget c++ code and just wonder if there is any tool that can automatically convert it to wxpython code?
thanks,
anstoss
--
Franz Steinhaeusler
Franz Steinhaeusler wrote:
On Sun, 18 Dec 2005 18:23:07 -0800 (PST), Anstoss <anstoss214@yahoo.com> wrote:
hi, I have a wxwidget c++ code and just wonder if there is any tool
that can automatically convert it to wxpython code?Automatically convert? I cannot imagine that this is doable.
I believe what Anstoss means is to wrap (or bind) c++ code in wxPython
projects. SWIG[1] is the right tool to do this, I believe, as wxPython
itself is built with it.
However, I am not familiar with SWIG and wxWidgets library dependencies.
Hope some one can make a more detailed explanation.
--
Qiangning Hong
http://hongqn.hn.org
Registered Linux User #396996