From 6587d5bea55a7c9a1466d96faca767129ec87630 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Tue, 4 Jun 2019 10:26:23 -0400 Subject: [PATCH] Fix for Text Element wrapping --- PySimpleGUI.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 2aca3126..af1f94a3 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -5186,6 +5186,8 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): wraplen = tktext_label.winfo_reqwidth() - 10 # width of widget in Pixels if not auto_size_text and height == 1: wraplen = 0 + else: + wraplen = width tktext_label.configure(anchor=anchor, wraplen=wraplen) # set wrap to width of widget if element.Relief is not None: tktext_label.configure(relief=element.Relief)