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:
@@ -515,6 +515,8 @@ specified by the TypeInfo.
|
||||
", "");
|
||||
|
||||
|
||||
MustHaveApp(wxActiveXWindow);
|
||||
|
||||
class wxActiveXWindow : public wxWindow
|
||||
{
|
||||
public:
|
||||
@@ -1053,6 +1055,8 @@ public:
|
||||
%feature("noautodoc") wxIEHtmlWindowBase::GetText;
|
||||
|
||||
|
||||
MustHaveApp(wxIEHtmlWindowBase);
|
||||
|
||||
class wxIEHtmlWindowBase : public wxActiveXWindow {
|
||||
public:
|
||||
|
||||
|
@@ -139,6 +139,8 @@ public:
|
||||
|
||||
*/
|
||||
|
||||
MustHaveApp(wxDynamicSashWindow);
|
||||
|
||||
class wxDynamicSashWindow : public wxWindow {
|
||||
public:
|
||||
%pythonAppend wxDynamicSashWindow "self._setOORInfo(self)"
|
||||
@@ -177,6 +179,7 @@ enum {
|
||||
|
||||
// This class provides a composite control that lets the
|
||||
// user easily enter list of strings
|
||||
MustHaveApp(wxEditableListBox);
|
||||
class wxEditableListBox : public wxPanel
|
||||
{
|
||||
public:
|
||||
@@ -227,6 +230,8 @@ public:
|
||||
typedef wxTreeCtrl wxPyTreeCtrl;
|
||||
%}
|
||||
|
||||
MustHaveApp(wxRemotelyScrolledTreeCtrl);
|
||||
|
||||
class wxRemotelyScrolledTreeCtrl: public wxPyTreeCtrl
|
||||
{
|
||||
public:
|
||||
@@ -298,6 +303,8 @@ public:
|
||||
%}
|
||||
|
||||
|
||||
MustHaveApp(wxPyTreeCompanionWindow);
|
||||
|
||||
%name(TreeCompanionWindow) class wxPyTreeCompanionWindow: public wxWindow
|
||||
{
|
||||
public:
|
||||
@@ -323,6 +330,8 @@ public:
|
||||
* than the usual one.
|
||||
*/
|
||||
|
||||
MustHaveApp(wxThinSplitterWindow);
|
||||
|
||||
class wxThinSplitterWindow: public wxSplitterWindow
|
||||
{
|
||||
public:
|
||||
@@ -346,6 +355,8 @@ public:
|
||||
* scroll appropriately.
|
||||
*/
|
||||
|
||||
MustHaveApp(wxSplitterScrolledWindow);
|
||||
|
||||
class wxSplitterScrolledWindow: public wxScrolledWindow
|
||||
{
|
||||
public:
|
||||
@@ -375,6 +386,8 @@ enum wxLEDValueAlign
|
||||
};
|
||||
|
||||
|
||||
MustHaveApp(wxLEDNumberCtrl);
|
||||
|
||||
class wxLEDNumberCtrl : public wxControl
|
||||
{
|
||||
public:
|
||||
@@ -501,6 +514,8 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyTreeListCtrl, wxTreeListCtrl)
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxPyTreeListCtrl);
|
||||
|
||||
%name(TreeListCtrl) class wxPyTreeListCtrl : public wxControl
|
||||
{
|
||||
public:
|
||||
|
@@ -43,6 +43,8 @@ class wxPalette;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
MustHaveApp(wxGLContext);
|
||||
|
||||
class wxGLContext : public wxObject {
|
||||
public:
|
||||
#ifndef __WXMAC__
|
||||
@@ -118,6 +120,8 @@ enum {
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxGLCanvas);
|
||||
|
||||
class wxGLCanvas : public wxWindow {
|
||||
public:
|
||||
%pythonAppend wxGLCanvas "self._setOORInfo(self)"
|
||||
|
@@ -78,6 +78,8 @@ enum wxIEHtmlRefreshLevel {
|
||||
};
|
||||
|
||||
|
||||
MustHaveApp(wxIEHtmlWin);
|
||||
|
||||
class wxIEHtmlWin : public wxWindow /* wxActiveX */
|
||||
{
|
||||
public:
|
||||
|
@@ -99,6 +99,8 @@ public:
|
||||
%}
|
||||
|
||||
|
||||
MustHaveApp(wxPyShapeCanvas);
|
||||
|
||||
class wxPyShapeCanvas : public wxScrolledWindow {
|
||||
public:
|
||||
%pythonAppend wxPyShapeCanvas "self._setOORandCallbackInfo(PyShapeCanvas)"
|
||||
|
@@ -44,9 +44,8 @@ class wxXmlResource : public wxObject
|
||||
{
|
||||
public:
|
||||
|
||||
%pythonAppend wxXmlResource(const wxString& filemask, int flags) "self.InitAllHandlers()"
|
||||
|
||||
%pythonAppend wxXmlResource(int flags) "val.InitAllHandlers()"
|
||||
%pythonAppend wxXmlResource(const wxString& filemask, int flags) "self.InitAllHandlers()"
|
||||
%pythonAppend wxXmlResource(int flags) "val.InitAllHandlers()"
|
||||
|
||||
// Ctors.
|
||||
// Flags: wxXRC_USE_LOCALE
|
||||
|
Reference in New Issue
Block a user