Drawing rectangle on python Tkinter canvas that covers the entire canvas does not show border on top and left -


i'm trying create rectangle inside tkinter (python 2.7) canvas same dimension canvas. here relevant part of code:

self.canvas = canvas(self, width=100, height=100, backround="yellow") self.canvas.create_rectangle(0,0,100,100) 

this draws rectangle can't see left , top border of rectangle. if start rectangle let's 5,5 instead of 0,0 can see border of rectangle. ideas why happens, , how can around it?

unfortunately, canvas border included in drawable region. try setting borderwidth , highlightthickness attributes 0 on canvas.

you'll want adjust coordinates of rectangle end @ 99, since counting starts @ 0 (if width 100, coordinates go 0 99).


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -