-%module wxp
-%{
/////////////////////////////////////////////////////////////////////////////
// Name: wxp.i
// Purpose: SWIG interface file for a python wxWindows module
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-
-#ifdef __WXMSW__
-#include <windows.h>
-#undef FindWindow
-#undef GetCharWidth
-#undef LoadAccelerators
-#endif
+%module wxp
+%{
#include "helpers.h"
%}
};
-//---------------------------------------------------------------------------
-//---------------------------------------------------------------------------
-
-
-%{
-#ifdef __WXMSW__ // If building for win32...
-extern HINSTANCE wxhInstance;
-
-BOOL WINAPI DllMain(
- HINSTANCE hinstDLL, // handle to DLL module
- DWORD fdwReason, // reason for calling function
- LPVOID lpvReserved // reserved
- )
-{
- wxhInstance = hinstDLL;
- return 1;
-}
-#endif
-
-%}
-
-
-
//----------------------------------------------------------------------
// This code gets added to the module initialization function
%}
%init %{
- // We don't want to run the wxEntry or OnInit yet, so we just do the
- // beginings of what it would have done... See __wxStart() for the
- // rest.
-#ifdef __WXMSW__
- wxApp::Initialize((WXHINSTANCE)wxhInstance);
-#endif
-#ifdef __WXGTK__
- wxApp::CommonInit();
-#endif
+ __wxPreStart(); // initialize the GUI toolkit, if needed.
// wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
+// Revision 1.6 1998/08/27 21:59:10 RD
+// Some chicken-and-egg problems solved for wxPython on wxGTK
+//
+// Revision 1.5 1998/08/27 00:00:28 RD
+// - more tweaks
+// - have discovered some problems but not yet discovered solutions...
+//
+// Revision 1.4 1998/08/18 19:48:20 RD
+// more wxGTK compatibility things.
+//
+// It builds now but there are serious runtime problems...
+//
+// Revision 1.3 1998/08/15 07:36:53 RD
+// - Moved the header in the .i files out of the code that gets put into
+// the .cpp files. It caused CVS conflicts because of the RCS ID being
+// different each time.
+//
+// - A few minor fixes.
+//
// Revision 1.2 1998/08/14 23:36:49 RD
// Beginings of wxGTK compatibility
//