View.setInsertSpacesInsteadOfTabs

If true a tab key pressed is replaced by a group of space characters.

Of course it is still possible to insert a real \t programmatically with the gtk.text_buffer.TextBuffer API.

class View
void
setInsertSpacesInsteadOfTabs
(
bool enable
)

Parameters

enable bool

whether to insert spaces instead of tabs.