1
00:00:01,690 --> 00:00:07,750
OK, so our app is pretty much done, but this main screen here that first starts, there's nothing

2
00:00:07,750 --> 00:00:08,260
going on here.

3
00:00:08,260 --> 00:00:11,580
So I play around with this for a couple of minutes and see what we can do here.

4
00:00:11,590 --> 00:00:13,880
So let's head back over to our code.

5
00:00:13,890 --> 00:00:19,920
And I'm just going to come down to the bottom here and let's go start screen and what do we want?

6
00:00:19,930 --> 00:00:22,750
Let's create a frame.

7
00:00:22,780 --> 00:00:24,280
Let's call it start frame.

8
00:00:25,300 --> 00:00:27,760
And it's a frame and it's going to be in root.

9
00:00:28,090 --> 00:00:33,190
And we want the width or the height to be four hundred and the width.

10
00:00:35,170 --> 00:00:37,060
To be four hundred.

11
00:00:38,630 --> 00:00:47,270
And so let's start framed hack this guy and we want to fill equals both and we want to expand equals

12
00:00:47,270 --> 00:00:47,810
one.

13
00:00:47,820 --> 00:00:49,970
All right, so that's good.

14
00:00:51,250 --> 00:00:58,360
Now, let's create a star label, so let's go start our label, and that's going to be a label and it's

15
00:00:58,360 --> 00:01:04,540
going to be in start frame and we want the text to equal what?

16
00:01:05,290 --> 00:01:09,610
Welcome to math flashcards, Derf.

17
00:01:10,450 --> 00:01:12,580
And we want the font to equal.

18
00:01:13,390 --> 00:01:15,010
Let's go Helvetica.

19
00:01:16,840 --> 00:01:24,990
Ticha, and we go and want the size to be, I say, 16 ish or maybe 18 ish, something like that, and

20
00:01:24,990 --> 00:01:26,390
let's just pack this on the screen.

21
00:01:27,460 --> 00:01:36,490
OK, and let's give this a pat why of like I don't know, 40 or so some space, um, let's create some

22
00:01:36,490 --> 00:01:37,270
buttons.

23
00:01:38,400 --> 00:01:47,310
Two flash cards, so let's go a underscore button, and that's stands for additions or add button and

24
00:01:47,310 --> 00:01:54,930
that's a button and we want it in start underscore frame and we want the text to equal edition flash

25
00:01:54,980 --> 00:02:00,420
cards and we want the command to equal add.

26
00:02:00,690 --> 00:02:07,540
And we can just pack this on the screen and let's give this a pad Y of like five or something.

27
00:02:07,800 --> 00:02:12,180
So this ad command, that's the same command that our menu fires right here.

28
00:02:12,930 --> 00:02:14,910
Remember our menus at the top of the screen.

29
00:02:14,920 --> 00:02:17,910
So it's just going to fire the math of the add flashcard thing.

30
00:02:17,910 --> 00:02:18,150
Right.

31
00:02:18,540 --> 00:02:22,710
So I'm just going to copy this and we need three more.

32
00:02:22,710 --> 00:02:23,870
One, two, three.

33
00:02:24,390 --> 00:02:30,750
And let's call this one the subtract button and button four, multiply the D button for divide.

34
00:02:30,760 --> 00:02:42,780
And here we can change this to subtraction and multiplication and then division and we need to change

35
00:02:42,780 --> 00:02:43,950
each of these functions.

36
00:02:43,980 --> 00:02:45,480
So let's go subtract.

37
00:02:46,940 --> 00:02:49,310
And this one is multiply.

38
00:02:52,150 --> 00:02:53,620
And this one is divide.

39
00:02:54,860 --> 00:02:59,870
OK, so I think that should work, let's save this and run it, see what I messed up.

40
00:03:00,400 --> 00:03:01,220
Oh, OK.

41
00:03:01,340 --> 00:03:01,820
Looks OK.

42
00:03:01,820 --> 00:03:02,080
Right.

43
00:03:02,630 --> 00:03:07,250
And if we click any of these things, oh, something has gone horribly wrong.

44
00:03:07,250 --> 00:03:10,340
We're not actually hiding this thing like we're doing with all the other frames.

45
00:03:10,340 --> 00:03:12,320
So we need to fix that real quick.

46
00:03:14,480 --> 00:03:19,580
So what do we call this thing, we called it the start frame, so I'm just going to copy that and head

47
00:03:19,580 --> 00:03:27,020
up to our hyd function right there and let's start framed OPAC, underscore or forget.

48
00:03:31,880 --> 00:03:37,490
OK, let's just save that and see if that fixed that little problem, I imagine it should.

49
00:03:38,300 --> 00:03:42,920
So now boom subtraction and that worked if we run it again.

50
00:03:44,090 --> 00:03:47,770
This kind of spot check, these additions that worked.

51
00:03:50,270 --> 00:03:56,750
In multiplication, OK, that one works properly, don't have to test these, but, you know, might

52
00:03:56,750 --> 00:03:57,080
as well.

53
00:03:57,120 --> 00:03:58,810
OK, so that worked well.

54
00:03:58,820 --> 00:04:00,800
Now what if we want to go back to the home screen?

55
00:04:00,800 --> 00:04:03,370
Let's make a little menu thing.

56
00:04:04,320 --> 00:04:09,630
Right in here that allows us to do that, this video is going a little bit long and we'll do that in

57
00:04:09,630 --> 00:04:10,280
the next video.
