I am searching for this for ages now. Is it so hard to get the height/width of a Canvas in tkinter? I want to do something like this:
c = Tk.Canvas(self, heigth=12, width=12)
c.create_oval(0, 0, self.height, self.width)
So that I draw a circle with the circumference of the width/height of my canvas.
How come I can't find any attribute like width/height of that canvas?
c.winfo_width
and c.winfo_height
wouldn't work, because that only gives me error.
Can you help me? This is really irritating, since even in the constructor there is the attribute height
and width
...
<tkinter.Tk>.update
beforewinfo_height
. – Selfrestraintc.winfo_width
andc.winfo_height
also worked. But I'll stick with @hussics answer – Nolly