Adjusted wraplength, Updated demo program that displays PNG files

This commit is contained in:
MikeTheWatchGuy 2018-08-22 17:14:58 -04:00
parent 6547a1b689
commit b1829438a9
2 changed files with 14 additions and 13 deletions

View file

@ -1458,7 +1458,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
# tktext_label = tk.Label(tk_row_frame,anchor=tk.NW, text=display_text, width=width, height=height, justify=tk.LEFT, bd=border_depth)
# Set wrap-length for text (in PIXELS) == PAIN IN THE ASS
wraplen = tktext_label.winfo_reqwidth() # width of widget in Pixels
tktext_label.configure(anchor=anchor, font=font, wraplen=0) # set wrap to width of widget
tktext_label.configure(anchor=anchor, font=font, wraplen=wraplen+40) # set wrap to width of widget
if element.BackgroundColor is not None:
tktext_label.configure(background=element.BackgroundColor)
if element.TextColor != COLOR_SYSTEM_DEFAULT and element.TextColor is not None: