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:
@@ -23,6 +23,8 @@ MAKE_CONST_WXSTRING(StaticTextNameStr);
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxStaticBox);
|
||||
|
||||
class wxStaticBox : public wxControl {
|
||||
public:
|
||||
%pythonAppend wxStaticBox "self._setOORInfo(self)"
|
||||
@@ -50,6 +52,8 @@ public:
|
||||
%newgroup
|
||||
|
||||
|
||||
MustHaveApp(wxStaticLine);
|
||||
|
||||
class wxStaticLine : public wxControl {
|
||||
public:
|
||||
%pythonAppend wxStaticLine "self._setOORInfo(self)"
|
||||
@@ -82,6 +86,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxStaticText);
|
||||
|
||||
class wxStaticText : public wxControl {
|
||||
public:
|
||||
%pythonAppend wxStaticText "self._setOORInfo(self)"
|
||||
@@ -107,6 +113,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxStaticBitmap);
|
||||
|
||||
class wxStaticBitmap : public wxControl {
|
||||
public:
|
||||
%pythonAppend wxStaticBitmap "self._setOORInfo(self)"
|
||||
|
Reference in New Issue
Block a user