All the Window and GDI (pen, bitmap, etc.) classes and also many
toplevel functions will now check that a wx.App object has already been created and will raise a wx.PyNoAppError exception if not. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -149,6 +149,8 @@ public:
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxPageSetupDialog);
|
||||
|
||||
class wxPageSetupDialog : public wxDialog {
|
||||
public:
|
||||
%pythonAppend wxPageSetupDialog "self._setOORInfo(self)"
|
||||
@@ -217,6 +219,8 @@ public:
|
||||
};
|
||||
|
||||
|
||||
MustHaveApp(wxPrintDialog);
|
||||
|
||||
class wxPrintDialog : public wxDialog {
|
||||
public:
|
||||
%pythonAppend wxPrintDialog "self._setOORInfo(self)"
|
||||
@@ -243,6 +247,8 @@ enum wxPrinterError
|
||||
};
|
||||
|
||||
|
||||
MustHaveApp(wxPrinter);
|
||||
|
||||
class wxPrinter : public wxObject {
|
||||
public:
|
||||
wxPrinter(wxPrintDialogData* data = NULL);
|
||||
@@ -323,6 +329,8 @@ IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage);
|
||||
%}
|
||||
|
||||
|
||||
MustHaveApp(wxPyPrintout);
|
||||
|
||||
// Now define the custom class for SWIGging
|
||||
%name(Printout) class wxPyPrintout : public wxObject {
|
||||
public:
|
||||
@@ -377,6 +385,8 @@ public:
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxPreviewCanvas);
|
||||
|
||||
class wxPreviewCanvas: public wxScrolledWindow
|
||||
{
|
||||
public:
|
||||
@@ -391,6 +401,8 @@ public:
|
||||
};
|
||||
|
||||
|
||||
MustHaveApp(wxPreviewFrame);
|
||||
|
||||
class wxPreviewFrame : public wxFrame {
|
||||
public:
|
||||
%pythonAppend wxPreviewFrame "self._setOORInfo(self)"
|
||||
@@ -430,6 +442,8 @@ enum {
|
||||
wxID_PREVIEW_GOTO
|
||||
};
|
||||
|
||||
MustHaveApp(wxPreviewControlBar);
|
||||
|
||||
class wxPreviewControlBar: public wxPanel
|
||||
{
|
||||
public:
|
||||
@@ -458,6 +472,8 @@ public:
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
MustHaveApp(wxPrintPreview);
|
||||
|
||||
class wxPrintPreview : public wxObject {
|
||||
public:
|
||||
%nokwargs wxPrintPreview;
|
||||
@@ -592,6 +608,8 @@ IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling)
|
||||
%}
|
||||
|
||||
|
||||
MustHaveApp(wxPyPrintPreview);
|
||||
|
||||
class wxPyPrintPreview : public wxPrintPreview
|
||||
{
|
||||
public:
|
||||
@@ -650,6 +668,8 @@ IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar);
|
||||
%}
|
||||
|
||||
|
||||
MustHaveApp(wxPyPreviewFrame);
|
||||
|
||||
class wxPyPreviewFrame : public wxPreviewFrame
|
||||
{
|
||||
public:
|
||||
@@ -704,6 +724,8 @@ IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomContr
|
||||
%}
|
||||
|
||||
|
||||
MustHaveApp(wxPyPreviewControlBar);
|
||||
|
||||
class wxPyPreviewControlBar : public wxPreviewControlBar
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user