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:
@@ -430,6 +430,10 @@ public:
|
||||
%newgroup
|
||||
|
||||
|
||||
MustHaveApp(wxFont);
|
||||
MustHaveApp(wxFont::GetDefaultEncoding);
|
||||
MustHaveApp(wxFont::SetDefaultEncoding);
|
||||
|
||||
class wxFont : public wxGDIObject {
|
||||
public:
|
||||
%pythonPrepend wxFont "if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']"
|
||||
@@ -533,6 +537,8 @@ IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEnc
|
||||
|
||||
%}
|
||||
|
||||
MustHaveApp(wxPyFontEnumerator);
|
||||
|
||||
%name(FontEnumerator) class wxPyFontEnumerator {
|
||||
public:
|
||||
%pythonAppend wxPyFontEnumerator "self._setCallbackInfo(self, FontEnumerator, 0)"
|
||||
|
Reference in New Issue
Block a user