Add IsOk's

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-09 02:36:38 +00:00
parent 6a591c4317
commit 6c2dd16f55
14 changed files with 67 additions and 37 deletions

View File

@@ -707,8 +707,9 @@ converting a height, for example.", "");
DocDeclStr(
virtual bool , Ok() const,
virtual bool , IsOk() const,
"Returns true if the DC is ok to use.", "");
%pythoncode { Ok = IsOk }
@@ -971,7 +972,7 @@ box doesn't contain anything.", "");
// See below for implementation
}
%pythoncode { def __nonzero__(self): return self.Ok() };
%pythoncode { def __nonzero__(self): return self.IsOk() };
#ifdef __WXMSW__
@@ -1588,7 +1589,8 @@ public:
wxMetaFile(const wxString& filename = wxPyEmptyString);
~wxMetaFile();
bool Ok();
bool IsOk();
%pythoncode { Ok = IsOk }
bool SetClipboard(int width = 0, int height = 0);
wxSize GetSize();
@@ -1599,7 +1601,7 @@ public:
const wxString& GetFileName() const;
#endif
%pythoncode { def __nonzero__(self): return self.Ok() }
%pythoncode { def __nonzero__(self): return self.IsOk() }
};
// bool wxMakeMetaFilePlaceable(const wxString& filename,