I need to remove this line and make padding around the text
solved!
editor.SetMarginWidth(1, 0)
Hi wxCoder,
Yes, the margin #1 is default and 16 pixels wide.
I think this page will also be helpful:
https://proton-ce.sourceforge.net/rc/scintilla/pyframe/www.pyframe.com/stc/margins.html