Changing the text of a ttk.Labelframe causes it to redraw completely, which makes the window flash. To avoid that, keep the Labelframe title static and show the “Message X of Y” info in a separate Label inside the frame instead. This removes the flicker.