]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/embedded/README.txt
s/WXK_NEXT/WXK_PAGEDOWN/ to fix compilation with compatibility off
[wxWidgets.git] / wxPython / samples / embedded / README.txt
CommitLineData
dcc1aa23 1This sample shows how to embed wxPython into a wxWidgets application.
a2426843
RD
2There are a few little tricks needed to make it work, but once over
3the hurdle it should work just fine for you. I'll try to describe the
4build issues here, see the code and comments in embedded.cpp for
5examples of how to use it.
6
71. The most important thing is that your wx application and wxPython
dcc1aa23
RD
8 must use the same version and the same instance of wxWidgets. That
9 means that you can not statically link your app with wxWidgets, but
10 must use a dynamic library for wxWidgets.
a2426843
RD
11
122. You must ensure that your app and wxPython are using the same
dcc1aa23 13 wxWidgets DLL. By default on MSW wxPython installs the wxWidgets
a2426843
RD
14 DLL to a directory not on the PATH, so you may have to do something
15 creative to make that happen. But because of #3 this may not be
16 that big of a problem.
17
dcc1aa23 183. wxPython, your app and wxWidgets must be built with the same flags
a2426843 19 and settings. This probably means that you will need to rebuild
dcc1aa23
RD
20 wxPython yourself. I do distribute the setup.h, other headers,
21 import libs and etc. that I use, but you'll need to rebuild
22 everything yourself anyway to get debugger versions so I'm not too
23 worried about it just yet. BTW, on MSW if you do debug builds of
24 your app and wxPython then you will need to have a debug version of
25 Python built too since it expects to have extension modules in
26 files with a _d in the name. If you do a hybrid build then you
27 will be able to use the stock version of Python, but you won't be
28 able to trace through the PYTHON API functions.
a2426843
RD
29
304. I expect that most of these issues will be much more minor on
31 Unix. ;-)
32