00:01
Okay, so this problem is very similar to the programs we wrote for problem 7 and problem 8 so we've we can actually reuse quite a bit of the same code so much that we're really not going to be writing too much new code.
00:18
It's mostly just going to be modifying the two we've taken our rectangles intersect program that drew the two rectangles that you could drag around we're still going to create a window a label, canvas, create the two rectangles, and then bind our click handler.
00:38
And then what we've added is the manual entry fields that we created in problem eight.
00:48
That one we had a center x and a center y and a radius.
00:52
Here we've just changed those so that we now have a center x, center y.
00:58
We've changed the radius to width and then we've added a height variable.
01:01
So we now have four variables instead of three.
01:06
Once again, we just create a new entry for those, and then we arrange them in the grid.
01:14
We update the field so they match the models, and then we just threw this button down at the bottom that we'll call our redraw function when it's clicked.
01:27
Again, we created a four loop that just iterates through all the variables for each of the variable rectangle pairs.
01:35
So we do all the r1 variables and then all of the r2 variables...