1
00:00:01,660 --> 00:00:08,140
OK, we are moving right along, so now we need a button to clear the screen and a button to save our

2
00:00:08,140 --> 00:00:08,960
image, right.

3
00:00:08,980 --> 00:00:12,130
So let's start to work on those in this video.

4
00:00:12,130 --> 00:00:19,390
So let's create another comment down here towards the bottom and let's call this the program options

5
00:00:19,390 --> 00:00:20,040
frame.

6
00:00:20,050 --> 00:00:21,220
So these are the options.

7
00:00:21,220 --> 00:00:22,930
Clear the screen, save the screen.

8
00:00:23,110 --> 00:00:24,720
Those are sort of program options, right?

9
00:00:25,000 --> 00:00:28,090
So let's create an options underscore frame.

10
00:00:28,900 --> 00:00:31,090
And this is going to be, again, a label frame.

11
00:00:32,850 --> 00:00:38,760
And where where do we want to put it again, we want to put it in our main brush options frame.

12
00:00:42,170 --> 00:00:43,140
Paste that in there.

13
00:00:43,370 --> 00:00:51,950
We want the tax to equal what let's say program options, and we need to now like always so is a two

14
00:00:51,950 --> 00:00:53,360
step process with widgets.

15
00:00:53,360 --> 00:00:55,670
We create them and then put them on the screen.

16
00:00:55,680 --> 00:00:57,020
So let's use grid.

17
00:00:57,020 --> 00:01:02,210
We want to still be the zero throw and now we want the column to equal.

18
00:01:02,210 --> 00:01:04,640
What are we on like three now or something.

19
00:01:05,540 --> 00:01:06,650
Let's look through here.

20
00:01:07,310 --> 00:01:11,810
Column two now we're on column three and let's give this a paddock's of 50.

21
00:01:11,810 --> 00:01:13,440
Just push it over a little bit.

22
00:01:13,760 --> 00:01:16,940
OK, so now let's create a clear button.

23
00:01:17,060 --> 00:01:22,160
We want to clear the screen and that's a button widget and we want to put it in this options frame that

24
00:01:22,160 --> 00:01:22,940
we just created.

25
00:01:25,730 --> 00:01:29,480
And we want the text to say clear screen.

26
00:01:30,990 --> 00:01:34,500
And what the command to equal clear.

27
00:01:35,820 --> 00:01:43,500
Underscore screen, and again, now we've got to packed this guy onto the screen, so let's pack and

28
00:01:43,500 --> 00:01:44,820
let's give this a pad.

29
00:01:46,270 --> 00:01:51,080
Acts of like 10 and a pad Y of like 10 to.

30
00:01:52,000 --> 00:01:55,150
All right, so now we need to create this clear screen function.

31
00:01:55,870 --> 00:01:58,890
So head back up to where all of our functions are.

32
00:01:59,050 --> 00:02:01,480
And let's create a function called clear screen.

33
00:02:05,230 --> 00:02:13,510
And so let's define clear screen and for now, let's just pass and while we're at it, let's just let's

34
00:02:13,750 --> 00:02:17,560
get this clear screen button.

35
00:02:18,850 --> 00:02:25,840
And like I said, while we're at it, let's create another button to save image, so let's call save

36
00:02:25,840 --> 00:02:30,400
underscore image, underscore button, and that's going to be a button widget.

37
00:02:32,210 --> 00:02:35,650
And again, it's going to be in our options frame.

38
00:02:37,510 --> 00:02:46,150
And let's give this a text of save to PMG Porgies, an image type, and for the command.

39
00:02:47,460 --> 00:02:50,520
Let's call this save image.

40
00:02:51,530 --> 00:03:01,490
Or save as PMG, if we want to be really explicit, copy this and as always, let's go save this image

41
00:03:01,490 --> 00:03:08,160
button pack and give this iPad Y of 10 and a pad X of ten.

42
00:03:08,980 --> 00:03:12,680
OK, and just like before, we need to create this function, so.

43
00:03:14,230 --> 00:03:15,220
I'm up here.

44
00:03:17,640 --> 00:03:19,830
Analysts say save image.

45
00:03:22,400 --> 00:03:29,480
So let's define save as PMG and let's pass this as well, so let's go and save this and run it just

46
00:03:29,480 --> 00:03:31,100
to make sure that this is looking good.

47
00:03:35,630 --> 00:03:40,790
And OK, as is looking pretty good and we want to play with the spacing a little bit here.

48
00:03:43,570 --> 00:03:47,030
These two buttons don't do anything yet, but OK, looking good.

49
00:03:47,380 --> 00:03:48,500
So I think that's all for this video.

50
00:03:48,500 --> 00:03:51,760
On the next video, we'll work on the functions for these two buttons.
