How to close all tabs via script?

for i in range(len(Glyphs.font.tabs)):
	del Glyphs.font.tabs[0]

doesn’t work if I’m in a tab as it leaves me with a blank screen and not Font tab?

Your code is correct. But there was a bug in mine.

1 Like