How do I erase that edge on Canvas?

Asked

Viewed 24 times

0

I want to erase this edge that’s around Canvas, but I can’t find which attribute determines its existence.

inserir a descrição da imagem aqui

Could someone help me?

The code:



class Tela():
    def __init__(self, resolucao:str):
        self.inst = Tk()
        self.inst['bg'] = 'black' 
        self.inst['relief'] = 'flat'
        
        resolucao = resolucao.split('x')
        print(resolucao)

        self.canvas = Canvas(self.inst, background='black', bd=0
        , width=int(resolucao[0]), height=int(resolucao[1])-100)
        
        self.canvas.pack()
        self.inst.mainloop()

Tela('640x480')
  • 1

    experiment: self.canvas = Canvas(self.inst, background='black', bd=0, width=int(resolucao[0]), height=int(resolucao[1])-100,highlightthickness=0)

  • It worked, thanks

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.