Set tabs in text widget with call from main() to eliminate flicker