Class Window¶
-
cornell.Window(x=100, y=100, width=800, height=800, scale=1)¶ Constructor: creates a new Window to support turtle graphics
Parameter: - x (
int>= 0) – initial x coordinate (default 100) - y (
int>= 0) – initial y coordinate (default 100) - width (
int> 0) – initial window width (default 800) - height (
int> 0) – initial window height (default 800) - scale (
float> 0) – initial window scale (INGORED)
- x (
Attributes¶
-
x¶ The x coordinate for top left corner of window
invariant: x must be an
int>= 0
-
y¶ The y coordinate for top left corner of window
invariant: y must be an
int>= 0
-
width¶ The width of the window in pixels
invariant: width must be an
int> 0
-
height¶ The height of the window in pixels
invariant: height must be an
int> 0
-
title¶ The title displayed at top of window bar
invariant: title must be a
str