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:
Robin Dunn 2002-05-02 06:18:39 +00:00
parent a24268437f
commit 5d26a7e65f
11 changed files with 15 additions and 12 deletions

View File

@ -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

View File

@ -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"

View File

@ -1 +1,2 @@
embedded
embedded.dsp

View File

@ -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()

View File

@ -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)

View File

@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
#define SWIG_name "calendarc"
#include "export.h"
#include "wxPython.h"
#include <wx/calctrl.h>

View File

@ -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>

View File

@ -55,7 +55,7 @@ extern PyObject *SWIG_newvarlink(void);
#define SWIG_name "helpc"
#include "export.h"
#include "wxPython.h"
#include <wx/cshelp.h>

View File

@ -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>

View File

@ -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>

View File

@ -596,7 +596,7 @@ PyObject *ptrfree(PyObject *_PTRVALUE) {
wxPyApp* wxGetApp() {
//return wxPythonApp;
return (wxPyApp*)wxGetApp();
return (wxPyApp*)wxTheApp;
}
void wxApp_CleanUp() {