Changes for the embedded sample to build on Linux
Swigged updates for wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a24268437f
commit
5d26a7e65f
@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
|
||||
|
||||
#define SWIG_name "glcanvasc"
|
||||
|
||||
#include "export.h"
|
||||
#include "wxPython.h"
|
||||
#ifdef __WXMSW__
|
||||
#include "myglcanvas.h"
|
||||
#else
|
||||
|
@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
|
||||
|
||||
#define SWIG_name "stc_c"
|
||||
|
||||
#include "export.h"
|
||||
#include "wxPython.h"
|
||||
#include "wx/stc/stc.h"
|
||||
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
embedded
|
||||
embedded.dsp
|
||||
|
@ -108,8 +108,8 @@ enum
|
||||
|
||||
|
||||
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()
|
||||
|
||||
|
||||
|
@ -12,18 +12,20 @@
|
||||
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)
|
||||
|
@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
|
||||
|
||||
#define SWIG_name "calendarc"
|
||||
|
||||
#include "export.h"
|
||||
#include "wxPython.h"
|
||||
#include <wx/calctrl.h>
|
||||
|
||||
|
||||
|
@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
|
||||
|
||||
#define SWIG_name "gridc"
|
||||
|
||||
#include "export.h"
|
||||
#include "wxPython.h"
|
||||
#include <wx/grid.h>
|
||||
#include <wx/generic/gridctrl.h>
|
||||
|
||||
|
@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
|
||||
|
||||
#define SWIG_name "helpc"
|
||||
|
||||
#include "export.h"
|
||||
#include "wxPython.h"
|
||||
#include <wx/cshelp.h>
|
||||
|
||||
|
||||
|
@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
|
||||
|
||||
#define SWIG_name "htmlc"
|
||||
|
||||
#include "export.h"
|
||||
#include "wxPython.h"
|
||||
#include <wx/html/htmlwin.h>
|
||||
#include <wx/html/htmprint.h>
|
||||
#include <wx/image.h>
|
||||
|
@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
|
||||
|
||||
#define SWIG_name "htmlhelpc"
|
||||
|
||||
#include "export.h"
|
||||
#include "wxPython.h"
|
||||
#include <wx/html/htmlwin.h>
|
||||
#include <wx/html/helpctrl.h>
|
||||
#include <wx/image.h>
|
||||
|
@ -596,7 +596,7 @@ PyObject *ptrfree(PyObject *_PTRVALUE) {
|
||||
|
||||
wxPyApp* wxGetApp() {
|
||||
//return wxPythonApp;
|
||||
return (wxPyApp*)wxGetApp();
|
||||
return (wxPyApp*)wxTheApp;
|
||||
}
|
||||
|
||||
void wxApp_CleanUp() {
|
||||
|
Loading…
Reference in New Issue
Block a user