Return the width and height of the turtle window.
(self)
| 779 | self.cv.reset(canvwidth, canvheight, bg) |
| 780 | |
| 781 | def _window_size(self): |
| 782 | """ Return the width and height of the turtle window. |
| 783 | """ |
| 784 | width = self.cv.winfo_width() |
| 785 | if width <= 1: # the window isn't managed by a geometry manager |
| 786 | width = self.cv['width'] |
| 787 | height = self.cv.winfo_height() |
| 788 | if height <= 1: # the window isn't managed by a geometry manager |
| 789 | height = self.cv['height'] |
| 790 | return width, height |
| 791 | |
| 792 | def mainloop(self): |
| 793 | """Starts event loop - calling Tkinter's mainloop function. |
no test coverage detected