#define SWIG_name "glcanvasc"
-#include "export.h"
+#include "wxPython.h"
#ifdef __WXMSW__
#include "myglcanvas.h"
#else
#define SWIG_name "stc_c"
-#include "export.h"
+#include "wxPython.h"
#include "wx/stc/stc.h"
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
- EVT_MENU(ID_EXIT, OnExit)
- EVT_MENU(ID_PYFRAME, OnPyFrame)
+ EVT_MENU(ID_EXIT, MyFrame::OnExit)
+ EVT_MENU(ID_PYFRAME, MyFrame::OnPyFrame)
END_EVENT_TABLE()
PROGRAM = embedded
OBJECTS = $(PROGRAM).o
+EXTRAINC=-I../../src -I/usr/include/python2.2
+EXTRALIB=-L/usr/lib/python2.2/config -lpython2.2
CXX = $(shell wx-config --cxx)
.SUFFIXES: .o .cpp
.cpp.o :
- $(CXX) -c `wx-config --cxxflags` -o $@ $<
+ $(CXX) -c `wx-config --cxxflags` $(EXTRAINC) -o $@ $<
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
- $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+ $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` $(EXTRALIB)
clean:
rm -f *.o $(PROGRAM)
#define SWIG_name "calendarc"
-#include "export.h"
+#include "wxPython.h"
#include <wx/calctrl.h>
#define SWIG_name "gridc"
-#include "export.h"
+#include "wxPython.h"
#include <wx/grid.h>
#include <wx/generic/gridctrl.h>
#define SWIG_name "helpc"
-#include "export.h"
+#include "wxPython.h"
#include <wx/cshelp.h>
#define SWIG_name "htmlc"
-#include "export.h"
+#include "wxPython.h"
#include <wx/html/htmlwin.h>
#include <wx/html/htmprint.h>
#include <wx/image.h>
#define SWIG_name "htmlhelpc"
-#include "export.h"
+#include "wxPython.h"
#include <wx/html/htmlwin.h>
#include <wx/html/helpctrl.h>
#include <wx/image.h>
wxPyApp* wxGetApp() {
//return wxPythonApp;
- return (wxPyApp*)wxGetApp();
+ return (wxPyApp*)wxTheApp;
}
void wxApp_CleanUp() {