]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/wx.i
Don't create a bitmap with dimensions <= 0...
[wxWidgets.git] / wxPython / src / wx.i
index 8aa1b43abfa9130267b0eb8386ba73cfe1bb177e..c9d140bc72630c76f49710e38fd101334b9948c3 100644 (file)
 
 #define __version__ "0.0.0"   // The real value is now in setup.py...
 
 
 #define __version__ "0.0.0"   // The real value is now in setup.py...
 
+%readonly
 wxPoint     wxDefaultPosition;
 wxSize      wxDefaultSize;
 wxPoint     wxDefaultPosition;
 wxSize      wxDefaultSize;
+%readwrite
 
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
@@ -159,8 +161,9 @@ static wxPyCoreAPI API = {
     SWIG_addvarlink,
     SWIG_newvarlink,
 
     SWIG_addvarlink,
     SWIG_newvarlink,
 
-    wxPySaveThread,
-    wxPyRestoreThread,
+    wxPyBeginBlockThreads,
+    wxPyEndBlockThreads,
+
     wxPyConstructObject,
     wxPy_ConvertList,
 
     wxPyConstructObject,
     wxPy_ConvertList,
 
@@ -184,8 +187,13 @@ static wxPyCoreAPI API = {
     wxPyCBH_callCallback,
     wxPyCBH_callCallbackObj,
     wxPyCBH_delete,
     wxPyCBH_callCallback,
     wxPyCBH_callCallbackObj,
     wxPyCBH_delete,
+
+    wxPyClassExists,
+    wxPyMake_wxObject,
+    wxPyPtrTypeMap_Add,
 };
 
 };
 
+
 %}
 
 
 %}
 
 
@@ -224,6 +232,14 @@ static wxPyCoreAPI API = {
     initstreamsc();
     initfilesysc();
 
     initstreamsc();
     initfilesysc();
 
+
+    PyDict_SetItemString(d,"wxMAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
+    PyDict_SetItemString(d,"wxMINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
+    PyDict_SetItemString(d,"wxRELEASE_NUMBER", PyInt_FromLong((long)wxRELEASE_NUMBER ));
+    PyDict_SetItemString(d,"wxVERSION_NUMBER", PyInt_FromLong((long)wxVERSION_NUMBER ));
+    PyDict_SetItemString(d,"wxVERSION_STRING", PyString_FromString(wxVERSION_STRING));
+
+
 %}
 
 //----------------------------------------------------------------------
 %}
 
 //----------------------------------------------------------------------