View.setInsertSpacesInsteadOfTabs

void setInsertSpacesInsteadOfTabs(bool enable)

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.

Parameters

enablewhether to insert spaces instead of tabs.