1
00:00:01,610 --> 00:00:07,520
OK, so we've got our canvas and we can draw on it, but we can't change any of the parameters for our

2
00:00:07,520 --> 00:00:10,650
brush sort of dynamically from this program.

3
00:00:10,670 --> 00:00:16,040
So in this video, we're going to start to build out the controls that allow us to change the color

4
00:00:16,040 --> 00:00:17,390
and the size and all those things.

5
00:00:17,840 --> 00:00:23,600
So the first thing we want to do is let's create a frame underneath our canvas here that will hold all

6
00:00:23,600 --> 00:00:27,560
of our other sort of elements that we want to update dynamically.

7
00:00:27,800 --> 00:00:31,180
So to do that, we're just going to create a frame and that's how we're going to do in this video.

8
00:00:31,190 --> 00:00:32,750
Shouldn't take a minute or so.

9
00:00:33,500 --> 00:00:34,940
So let's head back over a code.

10
00:00:35,920 --> 00:00:45,010
And let's come down here to the bottom of our program and let's create brush options frame.

11
00:00:45,640 --> 00:00:50,940
And so to do this, we're going to create a a frame and a frame is just a box that holds things right.

12
00:00:51,010 --> 00:00:51,850
It's a widget.

13
00:00:51,850 --> 00:00:52,990
It's a Cantor widget.

14
00:00:53,170 --> 00:00:58,690
And we can create it just by just like we created a canvas by creating a variable and then calling the

15
00:00:58,690 --> 00:00:59,400
widget itself.

16
00:00:59,410 --> 00:01:03,970
So let's call this brush options underscore frame.

17
00:01:04,240 --> 00:01:06,070
And that is a frame.

18
00:01:07,120 --> 00:01:11,560
And we want to put it in our root window, which is our main window, just like with our canvas here,

19
00:01:11,560 --> 00:01:12,490
we put it in a root.

20
00:01:12,910 --> 00:01:13,640
Same thing here.

21
00:01:13,840 --> 00:01:15,950
Now, we don't really need to put any other parameters here.

22
00:01:15,970 --> 00:01:16,660
That's good enough.

23
00:01:16,690 --> 00:01:25,330
So now let's let's go brush options, frame, dot pack and give this a pad Y of 20 to push it down a

24
00:01:25,330 --> 00:01:25,630
little bit.

25
00:01:25,660 --> 00:01:28,660
Now, these things are basically invisible.

26
00:01:28,670 --> 00:01:35,050
We can change the background color to, for instance, green or something just to see it.

27
00:01:35,560 --> 00:01:38,330
But we probably there's nothing in there yet.

28
00:01:38,350 --> 00:01:40,120
So if we actually run this.

29
00:01:41,410 --> 00:01:48,490
We can't actually see anything, right, because there's nothing in it right now, but it is absolutely

30
00:01:48,490 --> 00:01:51,670
there and now we can start to put the other things in.

31
00:01:51,670 --> 00:01:55,840
There are other controls that we want to have for our brush, you know, options.

32
00:01:55,840 --> 00:01:57,820
And we'll sort of do that in the next video.
