How to get rid of widget border?

后端 未结 1 976
暗喜
暗喜 2020-12-19 17:46

I have the following code:

from Tkinter import *
def gui():
    root = Tk()
    root.configure(background = \'red\')

    rightPanel = PanedWindow(borderwidt         


        
相关标签:
1条回答
  • 2020-12-19 18:34

    What you are seeing is the highlight ring around the canvas -- something that changes color to show that the canvas has keyboard focus. Set it to zero with the highlightthickness attribute:

    canvas1 = Canvas(rightPanel, bg='black', highlightthickness=0)
    

    Note that it could also be the canvas border. You might want to set borderwidth to zero, too.

    0 讨论(0)
提交回复
热议问题