<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div>I am using Python 3.x</div><div> </div><div>I am unable to remove the border in a Canvas widget with bd=0 or borderwidth=0. Can someone please explain how one can do this?</div><div> </div><div>I give below my program</div><div> </div><div>class Avatar(Frame):<br>    def __init__(self,parent=None,width=100,height=100,ovalness=1,bgFrameColor='Blue',bgCanvasColor='Black'):<br>        Frame.__init__(self,parent,width=width,height=height,bg=bgFrameColor)<br>        self.grid()<br>        #self.grid_propagate(0)<br>        <br>        self.width=width<br>       
 self.height=height<br>        self.ovalness=ovalness<br>        self.bgFrameColor=bgFrameColor<br>        self.bgCanvasColor=bgCanvasColor<br>        <br>        self.canvas1=Canvas(self,width=width/2,height=height/2,bg=bgCanvasColor,borderwidth=0)<br>        self.canvas1.grid(row=0,column=0,ipadx=0,ipady=0,padx=0,pady=0)<br>        self.canvas1.grid_propagate(0)<var id="yui-ie-cursor"></var></div><div>        self.canvas2=Canvas(self,width=width/2,height=height/2,bg=bgCanvasColor,borderwidth=0)<br>        self.canvas2.grid(row=1,column=1,ipadx=0,ipady=0,padx=0,pady=0)<br>       
 self.canvas2.grid_propagate(0)<br>        <br>        self.draw()<br>    def draw(self):<br>        pass<br>    <br>if __name__=='__main__':<br>    root=Tk()<br>    x=Avatar(parent=root)<br>    x.mainloop()</div><div> </div><div>when I run this program I can see a gray border on the two canvas objects.</div><div> </div><div>Alok</div><div> </div></div></body></html>