From 457591d8dd81024c8b0e1579468f25b2e266991a Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Mon, 17 Sep 2018 13:48:14 -0400 Subject: [PATCH] Fix for border around Canvas & Graph Elements --- PySimpleGUI.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index a045c2cc..53ec4323 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -2692,7 +2692,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): else: element._TKCanvas.master = tk_row_frame if element.BackgroundColor is not None and element.BackgroundColor != COLOR_SYSTEM_DEFAULT: - element._TKCanvas.configure(background=element.BackgroundColor) + element._TKCanvas.configure(background=element.BackgroundColor, highlightthickness=0) element._TKCanvas.pack(side=tk.LEFT, padx=element.Pad[0], pady=element.Pad[1]) # ------------------------- Graph element ------------------------- # elif element_type == ELEM_TYPE_GRAPH: @@ -2705,8 +2705,8 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): element._TKCanvas2.pack(side=tk.LEFT) element._TKCanvas2.addtag_all('mytag') if element.BackgroundColor is not None and element.BackgroundColor != COLOR_SYSTEM_DEFAULT: - element._TKCanvas2.configure(background=element.BackgroundColor) - element._TKCanvas.configure(background=element.BackgroundColor) + element._TKCanvas2.configure(background=element.BackgroundColor, highlightthickness=0) + element._TKCanvas.configure(background=element.BackgroundColor, highlightthickness=0) element._TKCanvas.pack(side=tk.LEFT, padx=element.Pad[0], pady=element.Pad[1]) # ------------------------- MENUBAR element ------------------------- # elif element_type == ELEM_TYPE_MENUBAR: