#define SWIGTYPE_p_wxSizerItem swig_types[2]
#define SWIGTYPE_p_wxGBSizerItem swig_types[3]
#define SWIGTYPE_p_wxScrollEvent swig_types[4]
-#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5]
-#define SWIGTYPE_p_wxSizer swig_types[6]
-#define SWIGTYPE_p_wxBoxSizer swig_types[7]
-#define SWIGTYPE_p_wxStaticBoxSizer swig_types[8]
-#define SWIGTYPE_p_wxGridBagSizer swig_types[9]
-#define SWIGTYPE_p_wxAcceleratorEntry swig_types[10]
-#define SWIGTYPE_p_wxUpdateUIEvent swig_types[11]
-#define SWIGTYPE_p_wxMenu swig_types[12]
-#define SWIGTYPE_p_wxEvent swig_types[13]
-#define SWIGTYPE_p_wxGridSizer swig_types[14]
-#define SWIGTYPE_p_wxFlexGridSizer swig_types[15]
-#define SWIGTYPE_p_wxInitDialogEvent swig_types[16]
-#define SWIGTYPE_p_wxItemContainer swig_types[17]
-#define SWIGTYPE_p_wxNcPaintEvent swig_types[18]
-#define SWIGTYPE_p_wxPaintEvent swig_types[19]
-#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20]
-#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21]
-#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22]
-#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23]
-#define SWIGTYPE_p_wxControl swig_types[24]
-#define SWIGTYPE_p_wxFont swig_types[25]
-#define SWIGTYPE_p_wxMenuBarBase swig_types[26]
-#define SWIGTYPE_p_wxSetCursorEvent swig_types[27]
-#define SWIGTYPE_p_wxFSFile swig_types[28]
-#define SWIGTYPE_p_wxCaret swig_types[29]
-#define SWIGTYPE_p_wxRegion swig_types[30]
-#define SWIGTYPE_p_wxPoint2D swig_types[31]
-#define SWIGTYPE_p_int swig_types[32]
-#define SWIGTYPE_p_wxSize swig_types[33]
-#define SWIGTYPE_p_wxDC swig_types[34]
-#define SWIGTYPE_p_wxPySizer swig_types[35]
-#define SWIGTYPE_p_wxVisualAttributes swig_types[36]
-#define SWIGTYPE_p_wxNotifyEvent swig_types[37]
-#define SWIGTYPE_p_wxPyEvent swig_types[38]
-#define SWIGTYPE_p_wxPropagationDisabler swig_types[39]
-#define SWIGTYPE_p_wxAppTraits swig_types[40]
-#define SWIGTYPE_p_wxArrayString swig_types[41]
-#define SWIGTYPE_p_wxShowEvent swig_types[42]
-#define SWIGTYPE_p_wxToolTip swig_types[43]
-#define SWIGTYPE_p_wxIconizeEvent swig_types[44]
-#define SWIGTYPE_p_wxActivateEvent swig_types[45]
-#define SWIGTYPE_p_wxMoveEvent swig_types[46]
-#define SWIGTYPE_p_wxSizeEvent swig_types[47]
-#define SWIGTYPE_p_wxMaximizeEvent swig_types[48]
-#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49]
-#define SWIGTYPE_p_wxWindowCreateEvent swig_types[50]
-#define SWIGTYPE_p_wxIdleEvent swig_types[51]
-#define SWIGTYPE_p_wxMenuItem swig_types[52]
-#define SWIGTYPE_p_wxStaticBox swig_types[53]
-#define SWIGTYPE_p_long swig_types[54]
-#define SWIGTYPE_p_wxTIFFHandler swig_types[55]
-#define SWIGTYPE_p_wxXPMHandler swig_types[56]
-#define SWIGTYPE_p_wxPNMHandler swig_types[57]
-#define SWIGTYPE_p_wxJPEGHandler swig_types[58]
-#define SWIGTYPE_p_wxPCXHandler swig_types[59]
-#define SWIGTYPE_p_wxGIFHandler swig_types[60]
-#define SWIGTYPE_p_wxPNGHandler swig_types[61]
-#define SWIGTYPE_p_wxANIHandler swig_types[62]
-#define SWIGTYPE_p_wxMemoryFSHandler swig_types[63]
-#define SWIGTYPE_p_wxEvtHandler swig_types[64]
-#define SWIGTYPE_p_wxCURHandler swig_types[65]
-#define SWIGTYPE_p_wxICOHandler swig_types[66]
-#define SWIGTYPE_p_wxBMPHandler swig_types[67]
-#define SWIGTYPE_p_wxImageHandler swig_types[68]
-#define SWIGTYPE_p_wxFileSystemHandler swig_types[69]
-#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70]
-#define SWIGTYPE_p_wxInternetFSHandler swig_types[71]
-#define SWIGTYPE_p_wxZipFSHandler swig_types[72]
-#define SWIGTYPE_p_wxRect swig_types[73]
-#define SWIGTYPE_p_wxGBSpan swig_types[74]
-#define SWIGTYPE_p_wxPropagateOnce swig_types[75]
-#define SWIGTYPE_p_wxAcceleratorTable swig_types[76]
-#define SWIGTYPE_p_char swig_types[77]
-#define SWIGTYPE_p_wxGBPosition swig_types[78]
-#define SWIGTYPE_p_wxImage swig_types[79]
-#define SWIGTYPE_p_wxFrame swig_types[80]
-#define SWIGTYPE_p_wxScrollWinEvent swig_types[81]
-#define SWIGTYPE_p_wxImageHistogram swig_types[82]
-#define SWIGTYPE_p_byte swig_types[83]
-#define SWIGTYPE_p_wxPoint swig_types[84]
-#define SWIGTYPE_p_wxCursor swig_types[85]
-#define SWIGTYPE_p_wxObject swig_types[86]
-#define SWIGTYPE_p_wxPyInputStream swig_types[87]
-#define SWIGTYPE_p_wxOutputStream swig_types[88]
-#define SWIGTYPE_p_wxInputStream swig_types[89]
-#define SWIGTYPE_p_wxDateTime swig_types[90]
-#define SWIGTYPE_p_wxKeyEvent swig_types[91]
-#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
-#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93]
-#define SWIGTYPE_p_wxWindow swig_types[94]
-#define SWIGTYPE_p_wxMenuBar swig_types[95]
-#define SWIGTYPE_p_wxFileSystem swig_types[96]
-#define SWIGTYPE_p_wxBitmap swig_types[97]
-#define SWIGTYPE_p_wxMenuEvent swig_types[98]
-#define SWIGTYPE_p_wxContextMenuEvent swig_types[99]
-#define SWIGTYPE_p_unsigned_char swig_types[100]
-#define SWIGTYPE_p_wxCloseEvent swig_types[101]
-#define SWIGTYPE_p_wxEraseEvent swig_types[102]
-#define SWIGTYPE_p_wxMouseEvent swig_types[103]
-#define SWIGTYPE_p_wxPyApp swig_types[104]
-#define SWIGTYPE_p_wxCommandEvent swig_types[105]
-#define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
-#define SWIGTYPE_p_wxPyDropTarget swig_types[107]
-#define SWIGTYPE_p_wxQuantize swig_types[108]
-#define SWIGTYPE_p_wxChildFocusEvent swig_types[109]
-#define SWIGTYPE_p_wxFocusEvent swig_types[110]
-#define SWIGTYPE_p_wxDropFilesEvent swig_types[111]
-#define SWIGTYPE_p_wxControlWithItems swig_types[112]
-#define SWIGTYPE_p_wxColour swig_types[113]
-#define SWIGTYPE_p_wxValidator swig_types[114]
-#define SWIGTYPE_p_wxPyValidator swig_types[115]
-static swig_type_info *swig_types[117];
+#define SWIGTYPE_p_wxEventLoop swig_types[5]
+#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[6]
+#define SWIGTYPE_p_wxSizer swig_types[7]
+#define SWIGTYPE_p_wxBoxSizer swig_types[8]
+#define SWIGTYPE_p_wxStaticBoxSizer swig_types[9]
+#define SWIGTYPE_p_wxGridBagSizer swig_types[10]
+#define SWIGTYPE_p_wxAcceleratorEntry swig_types[11]
+#define SWIGTYPE_p_wxUpdateUIEvent swig_types[12]
+#define SWIGTYPE_p_wxMenu swig_types[13]
+#define SWIGTYPE_p_wxEvent swig_types[14]
+#define SWIGTYPE_p_wxGridSizer swig_types[15]
+#define SWIGTYPE_p_wxFlexGridSizer swig_types[16]
+#define SWIGTYPE_p_wxInitDialogEvent swig_types[17]
+#define SWIGTYPE_p_wxItemContainer swig_types[18]
+#define SWIGTYPE_p_wxNcPaintEvent swig_types[19]
+#define SWIGTYPE_p_wxPaintEvent swig_types[20]
+#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[21]
+#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[22]
+#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23]
+#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[24]
+#define SWIGTYPE_p_wxControl swig_types[25]
+#define SWIGTYPE_p_wxFont swig_types[26]
+#define SWIGTYPE_p_wxMenuBarBase swig_types[27]
+#define SWIGTYPE_p_wxSetCursorEvent swig_types[28]
+#define SWIGTYPE_p_wxFSFile swig_types[29]
+#define SWIGTYPE_p_wxCaret swig_types[30]
+#define SWIGTYPE_p_wxRegion swig_types[31]
+#define SWIGTYPE_p_wxPoint2D swig_types[32]
+#define SWIGTYPE_p_int swig_types[33]
+#define SWIGTYPE_p_wxSize swig_types[34]
+#define SWIGTYPE_p_wxDC swig_types[35]
+#define SWIGTYPE_p_wxPySizer swig_types[36]
+#define SWIGTYPE_p_wxVisualAttributes swig_types[37]
+#define SWIGTYPE_p_wxNotifyEvent swig_types[38]
+#define SWIGTYPE_p_wxPyEvent swig_types[39]
+#define SWIGTYPE_p_wxPropagationDisabler swig_types[40]
+#define SWIGTYPE_p_wxAppTraits swig_types[41]
+#define SWIGTYPE_p_wxArrayString swig_types[42]
+#define SWIGTYPE_p_wxShowEvent swig_types[43]
+#define SWIGTYPE_p_wxToolTip swig_types[44]
+#define SWIGTYPE_p_wxIconizeEvent swig_types[45]
+#define SWIGTYPE_p_wxActivateEvent swig_types[46]
+#define SWIGTYPE_p_wxMoveEvent swig_types[47]
+#define SWIGTYPE_p_wxSizeEvent swig_types[48]
+#define SWIGTYPE_p_wxMaximizeEvent swig_types[49]
+#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[50]
+#define SWIGTYPE_p_wxWindowCreateEvent swig_types[51]
+#define SWIGTYPE_p_wxIdleEvent swig_types[52]
+#define SWIGTYPE_p_wxMenuItem swig_types[53]
+#define SWIGTYPE_p_wxStaticBox swig_types[54]
+#define SWIGTYPE_p_long swig_types[55]
+#define SWIGTYPE_p_wxTIFFHandler swig_types[56]
+#define SWIGTYPE_p_wxXPMHandler swig_types[57]
+#define SWIGTYPE_p_wxPNMHandler swig_types[58]
+#define SWIGTYPE_p_wxJPEGHandler swig_types[59]
+#define SWIGTYPE_p_wxPCXHandler swig_types[60]
+#define SWIGTYPE_p_wxGIFHandler swig_types[61]
+#define SWIGTYPE_p_wxPNGHandler swig_types[62]
+#define SWIGTYPE_p_wxANIHandler swig_types[63]
+#define SWIGTYPE_p_wxMemoryFSHandler swig_types[64]
+#define SWIGTYPE_p_wxEvtHandler swig_types[65]
+#define SWIGTYPE_p_wxCURHandler swig_types[66]
+#define SWIGTYPE_p_wxICOHandler swig_types[67]
+#define SWIGTYPE_p_wxBMPHandler swig_types[68]
+#define SWIGTYPE_p_wxImageHandler swig_types[69]
+#define SWIGTYPE_p_wxFileSystemHandler swig_types[70]
+#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[71]
+#define SWIGTYPE_p_wxInternetFSHandler swig_types[72]
+#define SWIGTYPE_p_wxZipFSHandler swig_types[73]
+#define SWIGTYPE_p_wxRect swig_types[74]
+#define SWIGTYPE_p_wxGBSpan swig_types[75]
+#define SWIGTYPE_p_wxPropagateOnce swig_types[76]
+#define SWIGTYPE_p_wxAcceleratorTable swig_types[77]
+#define SWIGTYPE_p_char swig_types[78]
+#define SWIGTYPE_p_wxGBPosition swig_types[79]
+#define SWIGTYPE_p_wxImage swig_types[80]
+#define SWIGTYPE_p_wxFrame swig_types[81]
+#define SWIGTYPE_p_wxScrollWinEvent swig_types[82]
+#define SWIGTYPE_p_wxImageHistogram swig_types[83]
+#define SWIGTYPE_p_byte swig_types[84]
+#define SWIGTYPE_p_wxPoint swig_types[85]
+#define SWIGTYPE_p_wxCursor swig_types[86]
+#define SWIGTYPE_p_wxObject swig_types[87]
+#define SWIGTYPE_p_wxPyInputStream swig_types[88]
+#define SWIGTYPE_p_wxOutputStream swig_types[89]
+#define SWIGTYPE_p_wxInputStream swig_types[90]
+#define SWIGTYPE_p_wxDateTime swig_types[91]
+#define SWIGTYPE_p_wxKeyEvent swig_types[92]
+#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93]
+#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[94]
+#define SWIGTYPE_p_wxWindow swig_types[95]
+#define SWIGTYPE_p_wxMenuBar swig_types[96]
+#define SWIGTYPE_p_wxFileSystem swig_types[97]
+#define SWIGTYPE_p_wxBitmap swig_types[98]
+#define SWIGTYPE_p_wxMenuEvent swig_types[99]
+#define SWIGTYPE_p_wxContextMenuEvent swig_types[100]
+#define SWIGTYPE_p_unsigned_char swig_types[101]
+#define SWIGTYPE_p_wxCloseEvent swig_types[102]
+#define SWIGTYPE_p_wxEraseEvent swig_types[103]
+#define SWIGTYPE_p_wxMouseEvent swig_types[104]
+#define SWIGTYPE_p_wxPyApp swig_types[105]
+#define SWIGTYPE_p_wxCommandEvent swig_types[106]
+#define SWIGTYPE_p_wxPyCommandEvent swig_types[107]
+#define SWIGTYPE_p_wxPyDropTarget swig_types[108]
+#define SWIGTYPE_p_wxQuantize swig_types[109]
+#define SWIGTYPE_p_wxChildFocusEvent swig_types[110]
+#define SWIGTYPE_p_wxFocusEvent swig_types[111]
+#define SWIGTYPE_p_wxDropFilesEvent swig_types[112]
+#define SWIGTYPE_p_wxControlWithItems swig_types[113]
+#define SWIGTYPE_p_wxColour swig_types[114]
+#define SWIGTYPE_p_wxValidator swig_types[115]
+#define SWIGTYPE_p_wxPyValidator swig_types[116]
+static swig_type_info *swig_types[118];
/* -------- TYPES TABLE (END) -------- */
const wxChar* className) {
swig_type_info* swigType = wxPyFindSwigType(className);
- wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
+ wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr"));
return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
}
if (dest != wxRect(0,0,0,0)) {
bool blocked = wxPyBeginBlockThreads();
wxRect* newRect = new wxRect(dest);
- obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
+ obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
wxPyEndBlockThreads(blocked);
return obj;
}
} else if (target == Py_None) {
Py_DECREF(Py_None);
target = o;
- } else {
- o2 = target;
- target = PyTuple_New(1);
- PyTuple_SetItem(target, 0, o2);
-
+ } else {
+ if (!PyTuple_Check(target)) {
+ o2 = target;
+ target = PyTuple_New(1);
+ PyTuple_SetItem(target, 0, o2);
+ }
o3 = PyTuple_New(1);
PyTuple_SetItem(o3, 0, o);
Py_DECREF(o3);
}
return target;
-}
+ }
void wxPoint2D_Set(wxPoint2D *self,double x,double y){
return SWIG_AsVal_bool(obj, (bool*)0);
}
-
- wxString wxFileSystem_URLToFileName(const wxString& url) {
- wxFileName fname = wxFileSystem::URLToFileName(url);
- return fname.GetFullPath();
- }
-
+wxString FileSystem_URLToFileName(wxString const &url){
+ wxFileName fname = wxFileSystem::URLToFileName(url);
+ return fname.GetFullPath();
+ }
void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
wxImage& image,
void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
PyObject* data) {
- wxMemoryFSHandler::AddFile(filename,
- // TODO: Verify data type
- (void*)PyString_AsString(data),
- (size_t)PyString_Size(data));
+ if (! PyString_Check(data)) {
+ wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
+ "Expected string object"));
+ return;
+ }
+
+ bool blocked = wxPyBeginBlockThreads();
+ void* ptr = (void*)PyString_AsString(data);
+ size_t size = PyString_Size(data);
+ wxPyEndBlockThreads(blocked);
+
+ wxMemoryFSHandler::AddFile(filename, ptr, size);
}
return NULL;
}
memcpy(copy, data, width*height*3);
- return new wxImage(width, height, copy, False);
+ return new wxImage(width, height, copy, false);
+ }
+wxImage *new_wxImage(int width,int height,unsigned char *data,unsigned char *alpha){
+ // Copy the source data so the wxImage can clean it up later
+ unsigned char* dcopy = (unsigned char*)malloc(width*height*3);
+ if (dcopy == NULL) {
+ PyErr_NoMemory();
+ return NULL;
+ }
+ memcpy(dcopy, data, width*height*3);
+ unsigned char* acopy = (unsigned char*)malloc(width*height);
+ if (acopy == NULL) {
+ PyErr_NoMemory();
+ return NULL;
+ }
+ memcpy(acopy, alpha, width*height);
+
+ return new wxImage(width, height, dcopy, acopy, false);
}
wxSize wxImage_GetSize(wxImage *self){
wxSize size(self->GetWidth(), self->GetHeight());
unsigned char* dataPtr;
if (! PyString_Check(data)) {
- PyErr_SetString(PyExc_TypeError, "Expected string object");
+ wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
+ "Expected string object"));
return /* NULL */ ;
}
wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
+#ifdef __WXMAC__
+
+// A dummy class that raises an exception if used...
+class wxEventLoop
+{
+public:
+ wxEventLoop() { wxPyRaiseNotImplemented(); }
+ int Run() { return 0; }
+ void Exit(int rc = 0) {}
+ bool Pending() const { return false; }
+ bool Dispatch() { return false; }
+ bool IsRunning() const { return false; }
+ static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; }
+ static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); }
+};
+
+#else
+
+#include <wx/evtloop.h>
+
+#endif
+
+
static const wxString wxPyPanelNameStr(wxPanelNameStr);
wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
#if wxUSE_HOTKEY
return self->RegisterHotKey(hotkeyId, modifiers, keycode);
#else
- return False;
+ return false;
#endif
}
bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
- return False;
+ return false;
}
long wxWindow_GetHandle(wxWindow *self){
return wxPyGetWinHandle(self);
}
+void wxWindow_AssociateHandle(wxWindow *self,long handle){
+ self->AssociateHandle((WXWidget)handle);
+ }
wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
return wxWindow::FindWindowById(id, parent);
struct wxPySizerItemInfo {
wxPySizerItemInfo()
- : window(NULL), sizer(NULL), gotSize(False),
- size(wxDefaultSize), gotPos(False), pos(-1)
+ : window(NULL), sizer(NULL), gotSize(false),
+ size(wxDefaultSize), gotPos(false), pos(-1)
{}
wxWindow* window;
// try wxSize or (w,h)
if ( checkSize && wxSize_helper(item, &sizePtr)) {
info.size = *sizePtr;
- info.gotSize = True;
+ info.gotSize = true;
}
// or a single int
if (checkIdx && PyInt_Check(item)) {
info.pos = PyInt_AsLong(item);
- info.gotPos = True;
+ info.gotPos = true;
}
}
}
if (!self->GetClientObject())
self->SetClientObject(new wxPyOORClientData(_self));
}
-void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
+wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
wxPyUserData* data = NULL;
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
if ( userData && (info.window || info.sizer || info.gotSize) )
data = new wxPyUserData(userData);
wxPyEndBlockThreads(blocked);
// Now call the real Add method if a valid item type was found
if ( info.window )
- self->Add(info.window, proportion, flag, border, data);
+ return self->Add(info.window, proportion, flag, border, data);
else if ( info.sizer )
- self->Add(info.sizer, proportion, flag, border, data);
+ return self->Add(info.sizer, proportion, flag, border, data);
else if (info.gotSize)
- self->Add(info.size.GetWidth(), info.size.GetHeight(),
- proportion, flag, border, data);
+ return self->Add(info.size.GetWidth(), info.size.GetHeight(),
+ proportion, flag, border, data);
+ else
+ return NULL;
}
-void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
+wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
wxPyUserData* data = NULL;
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
if ( userData && (info.window || info.sizer || info.gotSize) )
data = new wxPyUserData(userData);
wxPyEndBlockThreads(blocked);
// Now call the real Insert method if a valid item type was found
if ( info.window )
- self->Insert(before, info.window, proportion, flag, border, data);
+ return self->Insert(before, info.window, proportion, flag, border, data);
else if ( info.sizer )
- self->Insert(before, info.sizer, proportion, flag, border, data);
+ return self->Insert(before, info.sizer, proportion, flag, border, data);
else if (info.gotSize)
- self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
- proportion, flag, border, data);
+ return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
+ proportion, flag, border, data);
+ else
+ return NULL;
}
-void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
+wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
wxPyUserData* data = NULL;
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
if ( userData && (info.window || info.sizer || info.gotSize) )
data = new wxPyUserData(userData);
wxPyEndBlockThreads(blocked);
// Now call the real Prepend method if a valid item type was found
if ( info.window )
- self->Prepend(info.window, proportion, flag, border, data);
+ return self->Prepend(info.window, proportion, flag, border, data);
else if ( info.sizer )
- self->Prepend(info.sizer, proportion, flag, border, data);
+ return self->Prepend(info.sizer, proportion, flag, border, data);
else if (info.gotSize)
- self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
- proportion, flag, border, data);
+ return self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
+ proportion, flag, border, data);
+ else
+ return NULL;
}
bool wxSizer_Remove(wxSizer *self,PyObject *item){
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
wxPyEndBlockThreads(blocked);
if ( info.window )
return self->Remove(info.window);
else if ( info.gotPos )
return self->Remove(info.pos);
else
- return False;
+ return false;
}
bool wxSizer_Detach(wxSizer *self,PyObject *item){
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
wxPyEndBlockThreads(blocked);
if ( info.window )
return self->Detach(info.window);
else if ( info.gotPos )
return self->Detach(info.pos);
else
- return False;
+ return false;
+ }
+wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){
+ bool blocked = wxPyBeginBlockThreads();
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
+ wxPyEndBlockThreads(blocked);
+ if ( info.window )
+ return self->GetItem(info.window);
+ else if ( info.sizer )
+ return self->GetItem(info.sizer);
+ else if ( info.gotPos )
+ return self->GetItem(info.pos);
+ else
+ return NULL;
}
void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
wxPyEndBlockThreads(blocked);
if ( info.window )
self->SetItemMinSize(info.window, size);
wxSizerItemList& list = self->GetChildren();
return wxPy_ConvertList(&list);
}
-void wxSizer_Show(wxSizer *self,PyObject *item,bool show){
+bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
wxPyEndBlockThreads(blocked);
if ( info.window )
- self->Show(info.window, show);
+ return self->Show(info.window, show, recursive);
else if ( info.sizer )
- self->Show(info.sizer, show);
+ return self->Show(info.sizer, show, recursive);
else if ( info.gotPos )
- self->Show(info.pos, show);
+ return self->Show(info.pos, show);
+ else
+ return false;
}
bool wxSizer_IsShown(wxSizer *self,PyObject *item){
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false);
wxPyEndBlockThreads(blocked);
if ( info.window )
return self->IsShown(info.window);
else if ( info.gotPos )
return self->IsShown(info.pos);
else
- return False;
+ return false;
}
// See pyclasses.h
{
if (source == Py_None) {
**obj = wxGBPosition(-1,-1);
- return True;
+ return true;
}
return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
}
{
if (source == Py_None) {
**obj = wxGBSpan(-1,-1);
- return True;
+ return true;
}
return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
}
self->GetEndPos(row, col);
return wxGBPosition(row, col);
}
-bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
+wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
wxPyUserData* data = NULL;
bool blocked = wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
if ( userData && (info.window || info.sizer || info.gotSize) )
data = new wxPyUserData(userData);
wxPyEndBlockThreads(blocked);
// Now call the real Add method if a valid item type was found
if ( info.window )
- return self->Add(info.window, pos, span, flag, border, data);
+ return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data);
else if ( info.sizer )
- return self->Add(info.sizer, pos, span, flag, border, data);
+ return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data);
else if (info.gotSize)
- return self->Add(info.size.GetWidth(), info.size.GetHeight(),
- pos, span, flag, border, data);
- return False;
+ return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(),
+ pos, span, flag, border, data);
+ return NULL;
}
}
+static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxSize *arg1 = 0 ;
+ wxRect *result;
+ wxSize temp1 ;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "size", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail;
+ {
+ arg1 = &temp1;
+ if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (wxRect *)new wxRect((wxSize const &)*arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxRect *arg1 = (wxRect *) 0 ;
}
+static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete arg1;
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
wxFSFile *result;
wxPyInputStream *temp1 ;
bool created1 ;
- bool temp2 = False ;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp2 = false ;
+ bool temp3 = false ;
+ bool temp4 = false ;
wxDateTime *argp5 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
{
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
arg1 = temp1->m_wxis;
- created1 = False;
+ created1 = false;
} else {
PyErr_Clear(); // clear the failure of the wxPyConvert above
- arg1 = wxPyCBInputStream_create(obj0, False);
+ arg1 = wxPyCBInputStream_create(obj0, false);
if (arg1 == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
SWIG_fail;
}
- created1 = True;
+ created1 = true;
}
}
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime,
SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
if (result) {
_ptr = new wxPyInputStream(result);
}
- resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
+ resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
}
return resultobj;
fail:
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxFileSystem *arg2 = 0 ;
wxString *arg3 = 0 ;
wxFSFile *result;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
int arg3 = (int) 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (int)SWIG_As_int(obj2);
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
wxString *arg2 = 0 ;
- bool arg3 = (bool) False ;
- bool temp2 = False ;
+ bool arg3 = (bool) false ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (bool)SWIG_As_bool(obj2);
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
wxString *arg2 = 0 ;
wxFSFile *result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
int arg3 = (int) 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (int)SWIG_As_int(obj2);
PyObject *resultobj;
wxString *arg1 = 0 ;
wxString result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "filename", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
}
-static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxString *arg1 = 0 ;
wxString result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "url", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = wxFileSystem_URLToFileName((wxString const &)*arg1);
+ result = FileSystem_URLToFileName((wxString const &)*arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
+static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxInternetFSHandler *result;
wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxFileSystem *arg2 = 0 ;
wxString *arg3 = 0 ;
wxFSFile *result;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxFileSystem *arg2 = 0 ;
wxString *arg3 = 0 ;
wxFSFile *result;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
int arg3 = (int) 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (int)SWIG_As_int(obj2);
wxString *arg1 = 0 ;
wxImage *arg2 = 0 ;
long arg3 ;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
SWIG_POINTER_EXCEPTION | 0)) == -1)
wxString *arg1 = 0 ;
wxBitmap *arg2 = 0 ;
long arg3 ;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
SWIG_POINTER_EXCEPTION | 0)) == -1)
PyObject *resultobj;
wxString *arg1 = 0 ;
PyObject *arg2 = (PyObject *) 0 ;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
arg2 = obj1;
{
static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxString *arg1 = 0 ;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "filename", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxFileSystem *arg2 = 0 ;
wxString *arg3 = 0 ;
wxFSFile *result;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
int arg3 = (int) 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (int)SWIG_As_int(obj2);
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
long arg2 = (long) wxBITMAP_TYPE_ANY ;
int arg3 = (int) -1 ;
wxImage *result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
if (obj1) {
arg2 = (long)SWIG_As_long(obj1);
wxString *arg2 = 0 ;
int arg3 = (int) -1 ;
wxImage *result;
- bool temp1 = False ;
- bool temp2 = False ;
+ bool temp1 = false ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (int)SWIG_As_int(obj2);
{
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
arg1 = temp1->m_wxis;
- created1 = False;
+ created1 = false;
} else {
PyErr_Clear(); // clear the failure of the wxPyConvert above
- arg1 = wxPyCBInputStream_create(obj0, False);
+ arg1 = wxPyCBInputStream_create(obj0, false);
if (arg1 == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
SWIG_fail;
}
- created1 = True;
+ created1 = true;
}
}
if (obj1) {
wxImage *result;
wxPyInputStream *temp1 ;
bool created1 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
arg1 = temp1->m_wxis;
- created1 = False;
+ created1 = false;
} else {
PyErr_Clear(); // clear the failure of the wxPyConvert above
- arg1 = wxPyCBInputStream_create(obj0, False);
+ arg1 = wxPyCBInputStream_create(obj0, false);
if (arg1 == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
SWIG_fail;
}
- created1 = True;
+ created1 = true;
}
}
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (int)SWIG_As_int(obj2);
PyObject *resultobj;
int arg1 = (int) 0 ;
int arg2 = (int) 0 ;
- bool arg3 = (bool) True ;
+ bool arg3 = (bool) true ;
wxImage *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
}
+static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ int arg1 ;
+ int arg2 ;
+ unsigned char *arg3 = (unsigned char *) 0 ;
+ unsigned char *arg4 = (unsigned char *) 0 ;
+ wxImage *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ char *kwnames[] = {
+ (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
+ arg1 = (int)SWIG_As_int(obj0);
+ if (PyErr_Occurred()) SWIG_fail;
+ arg2 = (int)SWIG_As_int(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxImage *arg1 = (wxImage *) 0 ;
}
+static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxImage *arg1 = (wxImage *) 0 ;
+ unsigned char arg2 ;
+ unsigned char arg3 ;
+ unsigned char arg4 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ char *kwnames[] = {
+ (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
+ if (PyErr_Occurred()) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxImage *arg1 = (wxImage *) 0 ;
PyObject *resultobj;
wxString *arg1 = 0 ;
bool result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "name", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg1 = 0 ;
long arg2 = (long) wxBITMAP_TYPE_ANY ;
int result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
if (obj1) {
arg2 = (long)SWIG_As_long(obj1);
long arg3 = (long) wxBITMAP_TYPE_ANY ;
int arg4 = (int) -1 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = (long)SWIG_As_long(obj2);
wxString *arg3 = 0 ;
int arg4 = (int) -1 ;
bool result;
- bool temp2 = False ;
- bool temp3 = False ;
+ bool temp2 = false ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
arg4 = (int)SWIG_As_int(obj3);
wxString *arg2 = 0 ;
int arg3 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
arg3 = (int)SWIG_As_int(obj2);
if (PyErr_Occurred()) SWIG_fail;
wxString *arg2 = 0 ;
wxString *arg3 = 0 ;
bool result;
- bool temp2 = False ;
- bool temp3 = False ;
+ bool temp2 = false ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
{
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
arg1 = temp1->m_wxis;
- created1 = False;
+ created1 = false;
} else {
PyErr_Clear(); // clear the failure of the wxPyConvert above
- arg1 = wxPyCBInputStream_create(obj0, False);
+ arg1 = wxPyCBInputStream_create(obj0, false);
if (arg1 == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
SWIG_fail;
}
- created1 = True;
+ created1 = true;
}
}
{
{
if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
arg2 = temp2->m_wxis;
- created2 = False;
+ created2 = false;
} else {
PyErr_Clear(); // clear the failure of the wxPyConvert above
- arg2 = wxPyCBInputStream_create(obj1, False);
+ arg2 = wxPyCBInputStream_create(obj1, false);
if (arg2 == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
SWIG_fail;
}
- created2 = True;
+ created2 = true;
}
}
if (obj2) {
bool result;
wxPyInputStream *temp2 ;
bool created2 ;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
arg2 = temp2->m_wxis;
- created2 = False;
+ created2 = false;
} else {
PyErr_Clear(); // clear the failure of the wxPyConvert above
- arg2 = wxPyCBInputStream_create(obj1, False);
+ arg2 = wxPyCBInputStream_create(obj1, false);
if (arg2 == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
SWIG_fail;
}
- created2 = True;
+ created2 = true;
}
}
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
arg4 = (int)SWIG_As_int(obj3);
static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxImage *arg1 = (wxImage *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
wxImage *arg1 = (wxImage *) 0 ;
double arg2 ;
wxPoint *arg3 = 0 ;
- bool arg4 = (bool) True ;
+ bool arg4 = (bool) true ;
wxPoint *arg5 = (wxPoint *) NULL ;
SwigValueWrapper< wxImage > result;
wxPoint temp3 ;
static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxImage *arg1 = (wxImage *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
SwigValueWrapper< wxImage > result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxImage *arg1 = (wxImage *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
SwigValueWrapper< wxImage > result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
wxImage *arg1 = (wxImage *) 0 ;
wxString *arg2 = 0 ;
wxString *arg3 = 0 ;
- bool temp2 = False ;
- bool temp3 = False ;
+ bool temp2 = false ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxImage *arg1 = (wxImage *) 0 ;
wxString *arg2 = 0 ;
int arg3 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
arg3 = (int)SWIG_As_int(obj2);
if (PyErr_Occurred()) SWIG_fail;
wxImage *arg1 = (wxImage *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxImage *arg1 = (wxImage *) 0 ;
wxString *arg2 = 0 ;
int result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxImage *arg1 = (wxImage *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxString *arg1 = 0 ;
bool result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "name", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxEvent *arg1 = (wxEvent *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
PyObject *resultobj;
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
int arg3 = (int) 0 ;
wxActivateEvent *result;
PyObject * obj0 = 0 ;
static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
int arg1 = (int) 0 ;
- bool arg2 = (bool) False ;
+ bool arg2 = (bool) false ;
wxShowEvent *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
int arg1 = (int) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
wxIconizeEvent *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject *resultobj;
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
PyObject *resultobj;
wxPyApp *arg1 = (wxPyApp *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxPyApp *arg1 = (wxPyApp *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxPyApp *arg1 = (wxPyApp *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxPyApp *arg1 = (wxPyApp *) 0 ;
- bool arg2 = (bool) False ;
+ bool arg2 = (bool) false ;
bool result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
}
+static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ bool result;
+ char *kwnames[] = {
+ NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)wxPyApp::IsMainLoopRunning();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxPyApp *arg1 = (wxPyApp *) 0 ;
static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxString *arg1 = 0 ;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "val", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) NULL ;
- bool arg2 = (bool) False ;
+ bool arg2 = (bool) false ;
bool result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
}
+static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *result;
+ char *kwnames[] = {
+ NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (wxEventLoop *)new wxEventLoop();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *arg1 = (wxEventLoop *) 0 ;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete arg1;
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *arg1 = (wxEventLoop *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (int)(arg1)->Run();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_From_int((int)result);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *arg1 = (wxEventLoop *) 0 ;
+ int arg2 = (int) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *kwnames[] = {
+ (char *) "self",(char *) "rc", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ if (obj1) {
+ arg2 = (int)SWIG_As_int(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ (arg1)->Exit(arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *arg1 = (wxEventLoop *) 0 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)((wxEventLoop const *)arg1)->Pending();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *arg1 = (wxEventLoop *) 0 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)(arg1)->Dispatch();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *arg1 = (wxEventLoop *) 0 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)((wxEventLoop const *)arg1)->IsRunning();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *result;
+ char *kwnames[] = {
+ NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (wxEventLoop *)wxEventLoop::GetActive();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxEventLoop *arg1 = (wxEventLoop *) 0 ;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "loop", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxEventLoop::SetActive(arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
int arg1 = (int) 0 ;
PyObject *resultobj;
wxString *arg1 = 0 ;
wxAcceleratorEntry *result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "label", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxWindow *result;
wxPoint temp3 ;
wxSize temp4 ;
- bool temp6 = False ;
+ bool temp6 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg6 = wxString_in_helper(obj5);
if (arg6 == NULL) SWIG_fail;
- temp6 = True;
+ temp6 = true;
}
}
{
bool result;
wxPoint temp4 ;
wxSize temp5 ;
- bool temp7 = False ;
+ bool temp7 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg7 = wxString_in_helper(obj6);
if (arg7 == NULL) SWIG_fail;
- temp7 = True;
+ temp7 = true;
}
}
{
static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
- bool arg2 = (bool) False ;
+ bool arg2 = (bool) false ;
bool result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
bool result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
bool result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
wxWindow *arg1 = (wxWindow *) 0 ;
wxString *arg2 = 0 ;
wxWindow *result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
- bool arg2 = (bool) False ;
+ bool arg2 = (bool) false ;
wxEvtHandler *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
wxRect *arg3 = (wxRect *) NULL ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
wxString *arg2 = 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
int temp3 ;
int res3 = 0 ;
int temp4 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
int *arg5 = (int *) 0 ;
int *arg6 = (int *) 0 ;
wxFont *arg7 = (wxFont *) NULL ;
- bool temp2 = False ;
+ bool temp2 = false ;
int temp3 ;
int res3 = 0 ;
int temp4 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
}
+static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxWindow *arg1 = (wxWindow *) 0 ;
+ long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *kwnames[] = {
+ (char *) "self",(char *) "handle", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ arg2 = (long)SWIG_As_long(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxWindow_AssociateHandle(arg1,arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxWindow *arg1 = (wxWindow *) 0 ;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ (arg1)->DissociateHandle();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
int arg3 ;
int arg4 ;
int arg5 ;
- bool arg6 = (bool) True ;
+ bool arg6 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
wxWindow *arg1 = (wxWindow *) 0 ;
int arg2 ;
int arg3 ;
- bool arg4 = (bool) True ;
+ bool arg4 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxSizer *arg2 = (wxSizer *) 0 ;
- bool arg3 = (bool) True ;
+ bool arg3 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
wxSizer *arg2 = (wxSizer *) 0 ;
- bool arg3 = (bool) True ;
+ bool arg3 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
wxString *arg1 = 0 ;
wxWindow *arg2 = (wxWindow *) NULL ;
wxWindow *result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
if (obj1) {
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
wxString *arg1 = 0 ;
wxWindow *arg2 = (wxWindow *) NULL ;
wxWindow *result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
if (obj1) {
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
- int arg1 = (int) True ;
+ int arg1 = (int) true ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "doIt", NULL
wxPyValidator *arg1 = (wxPyValidator *) 0 ;
PyObject *arg2 = (PyObject *) 0 ;
PyObject *arg3 = (PyObject *) 0 ;
- int arg4 = (int) True ;
+ int arg4 = (int) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
wxString *arg1 = (wxString *) &arg1_defvalue ;
long arg2 = (long) 0 ;
wxMenu *result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
}
if (obj1) {
wxString *arg4 = (wxString *) &arg4_defvalue ;
int arg5 = (int) wxITEM_NORMAL ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp3 = false ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
}
if (obj4) {
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString *arg4 = (wxString *) &arg4_defvalue ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp3 = false ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
}
{
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString *arg4 = (wxString *) &arg4_defvalue ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp3 = false ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
}
{
wxString const &arg5_defvalue = wxPyEmptyString ;
wxString *arg5 = (wxString *) &arg5_defvalue ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp5 = False ;
+ bool temp3 = false ;
+ bool temp5 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
arg5 = wxString_in_helper(obj4);
if (arg5 == NULL) SWIG_fail;
- temp5 = True;
+ temp5 = true;
}
}
{
wxString *arg5 = (wxString *) &arg5_defvalue ;
int arg6 = (int) wxITEM_NORMAL ;
wxMenuItem *result;
- bool temp4 = False ;
- bool temp5 = False ;
+ bool temp4 = false ;
+ bool temp5 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
if (obj4) {
{
arg5 = wxString_in_helper(obj4);
if (arg5 == NULL) SWIG_fail;
- temp5 = True;
+ temp5 = true;
}
}
if (obj5) {
wxString const &arg5_defvalue = wxPyEmptyString ;
wxString *arg5 = (wxString *) &arg5_defvalue ;
wxMenuItem *result;
- bool temp4 = False ;
- bool temp5 = False ;
+ bool temp4 = false ;
+ bool temp5 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
if (obj4) {
{
arg5 = wxString_in_helper(obj4);
if (arg5 == NULL) SWIG_fail;
- temp5 = True;
+ temp5 = true;
}
}
{
wxString const &arg5_defvalue = wxPyEmptyString ;
wxString *arg5 = (wxString *) &arg5_defvalue ;
wxMenuItem *result;
- bool temp4 = False ;
- bool temp5 = False ;
+ bool temp4 = false ;
+ bool temp5 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
if (obj4) {
{
arg5 = wxString_in_helper(obj4);
if (arg5 == NULL) SWIG_fail;
- temp5 = True;
+ temp5 = true;
}
}
{
wxString const &arg6_defvalue = wxPyEmptyString ;
wxString *arg6 = (wxString *) &arg6_defvalue ;
wxMenuItem *result;
- bool temp4 = False ;
- bool temp6 = False ;
+ bool temp4 = false ;
+ bool temp6 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
arg6 = wxString_in_helper(obj5);
if (arg6 == NULL) SWIG_fail;
- temp6 = True;
+ temp6 = true;
}
}
{
wxString *arg4 = (wxString *) &arg4_defvalue ;
int arg5 = (int) wxITEM_NORMAL ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp3 = false ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
}
if (obj4) {
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString *arg4 = (wxString *) &arg4_defvalue ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp3 = false ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
}
{
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString *arg4 = (wxString *) &arg4_defvalue ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp3 = false ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
}
{
wxString const &arg5_defvalue = wxPyEmptyString ;
wxString *arg5 = (wxString *) &arg5_defvalue ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp5 = False ;
+ bool temp3 = false ;
+ bool temp5 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
arg5 = wxString_in_helper(obj4);
if (arg5 == NULL) SWIG_fail;
- temp5 = True;
+ temp5 = true;
}
}
{
wxMenu *arg1 = (wxMenu *) 0 ;
wxString *arg2 = 0 ;
int result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenu *arg1 = (wxMenu *) 0 ;
int arg2 ;
wxString *arg3 = 0 ;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenu *arg1 = (wxMenu *) 0 ;
int arg2 ;
wxString *arg3 = 0 ;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxMenu *arg1 = (wxMenu *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenu *arg2 = (wxMenu *) 0 ;
wxString *arg3 = 0 ;
bool result;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenu *arg3 = (wxMenu *) 0 ;
wxString *arg4 = 0 ;
bool result;
- bool temp4 = False ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenu *arg3 = (wxMenu *) 0 ;
wxString *arg4 = 0 ;
wxMenu *result;
- bool temp4 = False ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
size_t arg2 ;
wxString *arg3 = 0 ;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
wxString *arg3 = 0 ;
int result;
- bool temp2 = False ;
- bool temp3 = False ;
+ bool temp2 = false ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
wxString *arg2 = 0 ;
int result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
int arg2 ;
wxString *arg3 = 0 ;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
int arg2 ;
wxString *arg3 = 0 ;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
int arg5 = (int) wxITEM_NORMAL ;
wxMenu *arg6 = (wxMenu *) NULL ;
wxMenuItem *result;
- bool temp3 = False ;
- bool temp4 = False ;
+ bool temp3 = false ;
+ bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = True;
+ temp4 = true;
}
}
if (obj4) {
PyObject *resultobj;
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxString *arg1 = 0 ;
wxString result;
- bool temp1 = False ;
+ bool temp1 = false ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "text", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = True;
+ temp1 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
PyObject *resultobj;
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
- bool arg2 = (bool) True ;
+ bool arg2 = (bool) true ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
wxControl *result;
wxPoint temp3 ;
wxSize temp4 ;
- bool temp7 = False ;
+ bool temp7 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg7 = wxString_in_helper(obj6);
if (arg7 == NULL) SWIG_fail;
- temp7 = True;
+ temp7 = true;
}
}
{
bool result;
wxPoint temp4 ;
wxSize temp5 ;
- bool temp8 = False ;
+ bool temp8 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg8 = wxString_in_helper(obj7);
if (arg8 == NULL) SWIG_fail;
- temp8 = True;
+ temp8 = true;
}
}
{
PyObject *resultobj;
wxControl *arg1 = (wxControl *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
PyObject *arg3 = (PyObject *) NULL ;
int result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
if (obj2) {
arg3 = obj2;
PyObject *resultobj;
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
wxArrayString *arg2 = 0 ;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
SWIG_fail;
}
arg2 = new wxArrayString;
- temp2 = True;
+ temp2 = true;
int i, len=PySequence_Length(obj1);
for (i=0; i<len; i++) {
PyObject* item = PySequence_GetItem(obj1, i);
int arg3 ;
PyObject *arg4 = (PyObject *) NULL ;
int result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
arg3 = (int)SWIG_As_int(obj2);
if (PyErr_Occurred()) SWIG_fail;
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
int arg2 ;
wxString *arg3 = 0 ;
- bool temp3 = False ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = True;
+ temp3 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
wxString *arg2 = 0 ;
int result;
- bool temp2 = False ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = True;
+ temp2 = true;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
}
+static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxSizerItem *arg1 = (wxSizerItem *) 0 ;
+ wxRect result;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (arg1)->GetRect();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ wxRect * resultptr;
+ resultptr = new wxRect((wxRect &) result);
+ resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
int arg4 = (int) 0 ;
int arg5 = (int) 0 ;
PyObject *arg6 = (PyObject *) NULL ;
+ wxSizerItem *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
+ result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- Py_INCREF(Py_None); resultobj = Py_None;
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
return resultobj;
fail:
return NULL;
int arg5 = (int) 0 ;
int arg6 = (int) 0 ;
PyObject *arg7 = (PyObject *) NULL ;
+ wxSizerItem *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+ result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- Py_INCREF(Py_None); resultobj = Py_None;
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
return resultobj;
fail:
return NULL;
int arg4 = (int) 0 ;
int arg5 = (int) 0 ;
PyObject *arg6 = (PyObject *) NULL ;
+ wxSizerItem *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
+ result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- Py_INCREF(Py_None); resultobj = Py_None;
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
return resultobj;
fail:
return NULL;
}
+static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxSizer *arg1 = (wxSizer *) 0 ;
+ PyObject *arg2 = (PyObject *) 0 ;
+ wxSizerItem *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *kwnames[] = {
+ (char *) "self",(char *) "item", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ arg2 = obj1;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxSizer *arg1 = (wxSizer *) 0 ;
PyObject *resultobj;
wxSizer *arg1 = (wxSizer *) 0 ;
wxSizerItem *arg2 = (wxSizerItem *) 0 ;
+ wxSizerItem *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Add(arg2);
+ result = (wxSizerItem *)(arg1)->Add(arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- Py_INCREF(Py_None); resultobj = Py_None;
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
return resultobj;
fail:
return NULL;
wxSizer *arg1 = (wxSizer *) 0 ;
size_t arg2 ;
wxSizerItem *arg3 = (wxSizerItem *) 0 ;
+ wxSizerItem *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Insert(arg2,arg3);
+ result = (wxSizerItem *)(arg1)->Insert(arg2,arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- Py_INCREF(Py_None); resultobj = Py_None;
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
return resultobj;
fail:
return NULL;
PyObject *resultobj;
wxSizer *arg1 = (wxSizer *) 0 ;
wxSizerItem *arg2 = (wxSizerItem *) 0 ;
+ wxSizerItem *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Prepend(arg2);
+ result = (wxSizerItem *)(arg1)->Prepend(arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- Py_INCREF(Py_None); resultobj = Py_None;
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
return resultobj;
fail:
return NULL;
static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxSizer *arg1 = (wxSizer *) 0 ;
- bool arg2 = (bool) False ;
+ bool arg2 = (bool) false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
PyObject *resultobj;
wxSizer *arg1 = (wxSizer *) 0 ;
PyObject *arg2 = (PyObject *) 0 ;
- bool arg3 = (bool) True ;
+ bool arg3 = (bool) true ;
+ bool arg4 = (bool) false ;
+ bool result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
char *kwnames[] = {
- (char *) "self",(char *) "item",(char *) "show", NULL
+ (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL
};
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
arg2 = obj1;
arg3 = (bool)SWIG_As_bool(obj2);
if (PyErr_Occurred()) SWIG_fail;
}
+ if (obj3) {
+ arg4 = (bool)SWIG_As_bool(obj3);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSizer_Show(arg1,arg2,arg3);
+ result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- Py_INCREF(Py_None); resultobj = Py_None;
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
int arg5 = (int) 0 ;
int arg6 = (int) 0 ;
PyObject *arg7 = (PyObject *) NULL ;
- bool result;
+ wxGBSizerItem *result;
wxGBPosition temp3 ;
wxGBSpan temp4 ;
PyObject * obj0 = 0 ;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
+ result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
return resultobj;
fail:
return NULL;
PyObject *resultobj;
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
- bool result;
+ wxGBSizerItem *result;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Add(arg2);
+ result = (wxGBSizerItem *)(arg1)->Add(arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ wxSize result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ char *kwnames[] = {
+ (char *) "self",(char *) "row",(char *) "col", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ arg2 = (int)SWIG_As_int(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ arg3 = (int)SWIG_As_int(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ wxSize * resultptr;
+ resultptr = new wxSize((wxSize &) result);
+ resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
}
return resultobj;
fail:
{ (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL },
{ (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL },
- { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL },
{ (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL },
{ (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL },
{ (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL },
+ { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL },
static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
+static swig_type_info _swigt__p_wxEventLoop[] = {{"_p_wxEventLoop", 0, "wxEventLoop *", 0, 0, 0, 0},{"_p_wxEventLoop", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
_swigt__p_wxSizerItem,
_swigt__p_wxGBSizerItem,
_swigt__p_wxScrollEvent,
+_swigt__p_wxEventLoop,
_swigt__p_wxIndividualLayoutConstraint,
_swigt__p_wxSizer,
_swigt__p_wxBoxSizer,