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:
@@ -129,6 +129,7 @@ IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
|
||||
%}
|
||||
|
||||
// And now the one for SWIG to see
|
||||
MustHaveApp(wxPyWindow);
|
||||
class wxPyWindow : public wxWindow
|
||||
{
|
||||
public:
|
||||
@@ -273,6 +274,7 @@ IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
|
||||
%}
|
||||
|
||||
// And now the one for SWIG to see
|
||||
MustHaveApp(wxPyPanel);
|
||||
class wxPyPanel : public wxPanel
|
||||
{
|
||||
public:
|
||||
@@ -409,6 +411,7 @@ IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttribut
|
||||
%}
|
||||
|
||||
// And now the one for SWIG to see
|
||||
MustHaveApp(wxPyScrolledWindow);
|
||||
class wxPyScrolledWindow : public wxScrolledWindow
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user