[wxPython-users] Creating Custom wxPython Widget
Christopher Anderson
sidewinder.asu at gmail.com
Thu Dec 14 12:52:01 PST 2006
Robin Dunn wrote:
> What troubles?
I used the foobutton_.i code exactly as in the tutorial. I also added
this section to my setup.py:
#----------------------------------------------------------------------
# FooButton Extension Module
#----------------------------------------------------------------------
msg('Preparing FooButton...')
location = 'contrib/foobutton'
swig_files = ['foobutton_.i']
other_sources = ['contrib/foobutton/foobutton.cpp']
other_includes = []
other_libs = []
swig_sources = run_swig(swig_files, location, GENDIR, PKGDIR,
USE_SWIG, swig_force, swig_args, swig_deps)
ext = Extension('_foobutton',
swig_sources + other_sources,
include_dirs = includes + CONTRIBS_INC + other_includes,
define_macros = defines,
library_dirs = libdirs,
libraries = libs + other_libs,
extra_compile_args = cflags,
extra_link_args = lflags)
wxpExtensions.append(ext)
Now, when I try to run setup, I get these errors in regards to foobutton:
Warning(101): %extern is deprecated. Use %import instead.
Error: Unable to find 'wx.i'
I'm not sure exactly what the right thing to do is here.
Thanks,
Chris Anderson
More information about the wxpython-users
mailing list