// Since this one would be tough and ugly to do with the Macros...
void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
bool hadErr = FALSE;
+ bool found;
- bool doSave = wxPyRestoreThread();
- if (m_myInst.findCallback("GetPageInfo")) {
+ wxPyTState* state = wxPyBeginBlockThreads();
+ if ((found = m_myInst.findCallback("GetPageInfo"))) {
PyObject* result = m_myInst.callCallbackObj(Py_BuildValue("()"));
if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) {
PyObject* val;
}
Py_DECREF(result);
}
- else
+ wxPyEndBlockThreads(state);
+ if (! found)
wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
-
- wxPySaveThread(doSave);
}
void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
return (void *) dest;
}
-static void *SwigwxPageSetupDialogTowxPanel(void *ptr) {
+static void *SwigwxPageSetupDialogTowxTopLevelWindow(void *ptr) {
wxPageSetupDialog *src;
- wxPanel *dest;
+ wxTopLevelWindow *dest;
src = (wxPageSetupDialog *) ptr;
- dest = (wxPanel *) src;
+ dest = (wxTopLevelWindow *) src;
return (void *) dest;
}
return (void *) dest;
}
-static void *SwigwxPrintDialogTowxPanel(void *ptr) {
+static void *SwigwxPrintDialogTowxTopLevelWindow(void *ptr) {
wxPrintDialog *src;
- wxPanel *dest;
+ wxTopLevelWindow *dest;
src = (wxPrintDialog *) ptr;
- dest = (wxPanel *) src;
+ dest = (wxTopLevelWindow *) src;
return (void *) dest;
}
return (void *) dest;
}
+static void *SwigwxPreviewFrameTowxTopLevelWindow(void *ptr) {
+ wxPreviewFrame *src;
+ wxTopLevelWindow *dest;
+ src = (wxPreviewFrame *) ptr;
+ dest = (wxTopLevelWindow *) src;
+ return (void *) dest;
+}
+
static void *SwigwxPreviewFrameTowxWindow(void *ptr) {
wxPreviewFrame *src;
wxWindow *dest;
{ "_size_t","_int",0},
{ "_size_t","_wxWindowID",0},
{ "_size_t","_uint",0},
- { "_wxPanel","_wxPrintDialog",SwigwxPrintDialogTowxPanel},
- { "_wxPanel","_wxPageSetupDialog",SwigwxPageSetupDialogTowxPanel},
+ { "_wxTopLevelWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow},
+ { "_wxTopLevelWindow","_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow},
+ { "_wxTopLevelWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow},
{ "_uint","_wxCoord",0},
{ "_uint","_wxPrintQuality",0},
{ "_uint","_time_t",0},
{ "_uint","_wxWindowID",0},
{ "_wxChar","_char",0},
{ "_char","_wxChar",0},
+ { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
{ "_EBool","_wxCoord",0},
{ "_EBool","_wxPrintQuality",0},
{ "_EBool","_signed_int",0},
{ "_EBool","_int",0},
{ "_EBool","_wxWindowID",0},
{ "_unsigned_long","_long",0},
+ { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
{ "_signed_int","_wxCoord",0},
{ "_signed_int","_wxPrintQuality",0},
{ "_signed_int","_EBool",0},