Hi all !
I would like to implement a new wxWindows control as a C++ python extension
and use this control in a wxPython based application. Has someone already
done this ?
Thanks.
Guillaume
Hi all !
I would like to implement a new wxWindows control as a C++ python extension
and use this control in a wxPython based application. Has someone already
done this ?
Thanks.
Guillaume
Hi, Guillaume. Yes, this is actually not that hard to do, I am planning
on putting something up at wiki.wxpython.org but haven't had much time
to work on it. This thread might point you in the right direction in the
meantime:
http://lists.wxwindows.org/cgi-bin/ezmlm-cgi?11:mss:19881:hcdcmaknjafeiofkiogk
(watch out for the wxSWIG command line that got split across two lines)
-Mark
On Tue, 2003-06-24 at 08:35, Guillaume Brocker wrote:
Hi all !
I would like to implement a new wxWindows control as a C++ python extension
and use this control in a wxPython based application. Has someone already
done this ?
Thanks for your helpful link... And yes, I believe that an article about
this in the wxPython wiki would be usefull.
Guillaume
-----Message d'origine-----
De : Roach, Mark R. [mailto:mrroach@cimplify.net]
Envoyé : mardi 24 juin 2003 15:20
À : wxPython Users
Objet : Re: [wxPython-users] wxPython and C++
On Tue, 2003-06-24 at 08:35, Guillaume Brocker wrote:
Hi all !
I would like to implement a new wxWindows control as a C++ python
extension
and use this control in a wxPython based application. Has someone already
done this ?
Hi, Guillaume. Yes, this is actually not that hard to do, I am planning
on putting something up at wiki.wxpython.org but haven't had much time
to work on it. This thread might point you in the right direction in the
meantime:
http://lists.wxwindows.org/cgi-bin/ezmlm-cgi?11:mss:19881:hcdcmaknjafeiofkio
gk
(watch out for the wxSWIG command line that got split across two lines)
-Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Thanks for your helpful link... And yes, I believe that an article about
this in the wxPython wiki would be usefull.
As the OP in the quoted thread:
http://lists.wxwindows.org/cgi-bin/ezmlm-cgi?11:mss:19881:hcdcmaknjafeiofkiogk
I agree. Including a sample .i file and the changes that need to be
made to setup.py would be particularly helpful. If anyone could share
that information, s/he would have my gratitude.
On Tue, Jun 24, 2003 at 04:01:46PM +0200, Guillaume Brocker wrote:
--
Brian
I found another solution, that doesn't require to place the extension as a
wxPython contribution.
I have created a new wxWindow control, all in C++ and in a dynamic library.
I tested this control in C++ application and it works fine.
Then I added a simple wrapper responsible for the creation of that control.
The wrapper takes as argument a window identifier. This identifier is used
to retrieve the pointer to the real wxWindow instance and this instance is
used as the parent for the control. This wrapper is exported with SWIG to
become a Python extension. Once the extension library built and installed, I
can create from Python an instance of my C++ implemented control and set it
up as a child of any wxPython window just be supplying the right window ID
to the extension wrapper.
Additionnal information : I rebuilt wxPython so that is uses now the same
version of the wxWindow dynamic library as all my C++ developments.
Guillaume
-----Message d'origine-----
De : Roach, Mark R. [mailto:mrroach@cimplify.net]
Envoyé : mardi 24 juin 2003 15:20
À : wxPython Users
Objet : Re: [wxPython-users] wxPython and C++
On Tue, 2003-06-24 at 08:35, Guillaume Brocker wrote:
Hi all !
I would like to implement a new wxWindows control as a C++ python
extension
and use this control in a wxPython based application. Has someone already
done this ?
Hi, Guillaume. Yes, this is actually not that hard to do, I am planning
on putting something up at wiki.wxpython.org but haven't had much time
to work on it. This thread might point you in the right direction in the
meantime:
http://lists.wxwindows.org/cgi-bin/ezmlm-cgi?11:mss:19881:hcdcmaknjafeiofkio
gk
(watch out for the wxSWIG command line that got split across two lines)
-Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org