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:
@@ -145,6 +145,8 @@ public:
|
||||
// is accounted for in client size calculations - all others should be taken
|
||||
// care of manually.
|
||||
|
||||
MustHaveApp(wxFrame);
|
||||
|
||||
class wxFrame : public wxTopLevelWindow {
|
||||
public:
|
||||
%pythonAppend wxFrame "self._setOORInfo(self)"
|
||||
@@ -255,6 +257,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxDialog);
|
||||
|
||||
class wxDialog : public wxTopLevelWindow {
|
||||
public:
|
||||
%pythonAppend wxDialog "self._setOORInfo(self)"
|
||||
@@ -311,6 +315,8 @@ public:
|
||||
%newgroup
|
||||
|
||||
|
||||
MustHaveApp(wxMiniFrame);
|
||||
|
||||
class wxMiniFrame : public wxFrame {
|
||||
public:
|
||||
%pythonAppend wxMiniFrame "self._setOORInfo(self)"
|
||||
@@ -345,6 +351,8 @@ enum {
|
||||
};
|
||||
|
||||
|
||||
MustHaveApp(wxSplashScreenWindow);
|
||||
|
||||
class wxSplashScreenWindow: public wxWindow
|
||||
{
|
||||
public:
|
||||
@@ -361,6 +369,8 @@ public:
|
||||
};
|
||||
|
||||
|
||||
MustHaveApp(wxSplashScreen);
|
||||
|
||||
class wxSplashScreen : public wxFrame {
|
||||
public:
|
||||
%pythonAppend wxSplashScreen "self._setOORInfo(self)"
|
||||
|
Reference in New Issue
Block a user