2016-09-21 01:07:41 +00:00
|
|
|
|
|
|
|
|
2020-10-04 23:34:59 +00:00
|
|
|
%include pcb_text.h
|
2022-02-03 12:55:37 +00:00
|
|
|
%include pcb_textbox.h
|
2022-12-15 15:18:59 +00:00
|
|
|
%include font/text_attributes.h
|
2016-09-21 01:07:41 +00:00
|
|
|
%{
|
2020-10-04 23:34:59 +00:00
|
|
|
#include <pcb_text.h>
|
2022-02-03 12:55:37 +00:00
|
|
|
#include <pcb_textbox.h>
|
2016-09-21 01:07:41 +00:00
|
|
|
%}
|
|
|
|
|
2023-05-11 23:39:09 +00:00
|
|
|
|
|
|
|
%extend EDA_TEXT
|
|
|
|
{
|
|
|
|
%pythoncode
|
|
|
|
%{
|
|
|
|
# KiCad 6 API compatibility
|
|
|
|
def GetShownText(self):
|
|
|
|
r"""GetShownText(EDA_TEXT self) -> wxString"""
|
|
|
|
return _pcbnew.EDA_TEXT_GetShownText(self, True, 0)
|
|
|
|
%}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%extend PCB_TEXT
|
|
|
|
{
|
|
|
|
%pythoncode
|
|
|
|
%{
|
|
|
|
# KiCad 6 API compatibility
|
|
|
|
def GetShownText(self):
|
|
|
|
r"""GetShownText(PCB_TEXT self) -> wxString"""
|
|
|
|
return _pcbnew.PCB_TEXT_GetShownText(self, True, 0)
|
|
|
|
%}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%extend PCB_TEXTBOX
|
|
|
|
{
|
|
|
|
%pythoncode
|
|
|
|
%{
|
|
|
|
# KiCad 6 API compatibility
|
|
|
|
def GetShownText(self):
|
|
|
|
r"""GetShownText(PCB_TEXTBOX self) -> wxString"""
|
|
|
|
return _pcbnew.PCB_TEXTBOX_GetShownText(self, True, 0)
|
|
|
|
%}
|
|
|
|
}
|