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:
@@ -626,6 +626,8 @@ static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxMemoryDC);
|
||||
|
||||
class wxMemoryDC : public wxDC {
|
||||
public:
|
||||
wxMemoryDC();
|
||||
@@ -643,6 +645,8 @@ public:
|
||||
%}
|
||||
|
||||
|
||||
MustHaveApp(wxBufferedDC);
|
||||
|
||||
class wxBufferedDC : public wxMemoryDC
|
||||
{
|
||||
public:
|
||||
@@ -680,6 +684,7 @@ public:
|
||||
|
||||
|
||||
|
||||
MustHaveApp(wxBufferedPaintDC);
|
||||
|
||||
// Creates a double buffered wxPaintDC, optionally allowing the
|
||||
// user to specify their own buffer to use.
|
||||
@@ -696,6 +701,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxScreenDC);
|
||||
|
||||
class wxScreenDC : public wxDC {
|
||||
public:
|
||||
wxScreenDC();
|
||||
@@ -708,6 +715,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxClientDC);
|
||||
|
||||
class wxClientDC : public wxDC {
|
||||
public:
|
||||
wxClientDC(wxWindow* win);
|
||||
@@ -716,6 +725,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxPaintDC);
|
||||
|
||||
class wxPaintDC : public wxDC {
|
||||
public:
|
||||
wxPaintDC(wxWindow* win);
|
||||
@@ -724,6 +735,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxWindowDC);
|
||||
|
||||
class wxWindowDC : public wxDC {
|
||||
public:
|
||||
wxWindowDC(wxWindow* win);
|
||||
@@ -732,6 +745,8 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup
|
||||
|
||||
MustHaveApp(wxMirrorDC);
|
||||
|
||||
class wxMirrorDC : public wxDC
|
||||
{
|
||||
public:
|
||||
@@ -751,6 +766,8 @@ public:
|
||||
#include <wx/dcps.h>
|
||||
%}
|
||||
|
||||
MustHaveApp(wxPostScriptDC);
|
||||
|
||||
class wxPostScriptDC : public wxDC {
|
||||
public:
|
||||
wxPostScriptDC(const wxPrintData& printData);
|
||||
@@ -769,6 +786,10 @@ public:
|
||||
%newgroup
|
||||
|
||||
|
||||
MustHaveApp(wxMetaFile);
|
||||
MustHaveApp(wxMetaFileDC);
|
||||
|
||||
|
||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||
|
||||
%{
|
||||
@@ -843,6 +864,8 @@ public:
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
MustHaveApp(wxPrinterDC);
|
||||
|
||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||
|
||||
class wxPrinterDC : public wxDC {
|
||||
|
Reference in New Issue
Block a user