Attempt to patch SWIG for VIEW_ITEM::GetClass().

(cherry picked from commit da9544dfd10dfa9d17d17bf4b52a60fdb99b6d1e)
This commit is contained in:
Jeff Young 2025-07-04 10:00:50 -06:00
parent 1dbeec7c0f
commit 7ad1823d41

View File

@ -175,6 +175,18 @@ typedef long time_t;
%include <core/utf8.h>
%extend EDA_ITEM
{
wxString PyGetClass() const { return self->GetClass(); }
%pythoncode
%{
def GetClass(self):
return self.PyGetClass()
%}
}
%extend UTF8
{
const char* Cast_to_CChar() { return (self->c_str()); }