1
00:00:00,600 --> 00:00:06,340
Hello, everyone, in the previous video, I have shown you how you can create an empty window.

2
00:00:06,360 --> 00:00:13,650
Then we did some editing on it and this video, I will show you how you can create a label, then do

3
00:00:13,650 --> 00:00:15,350
something so it is being honest.

4
00:00:15,390 --> 00:00:17,140
Then we will pack it in the window.

5
00:00:17,670 --> 00:00:23,270
So the first thing that we have to do is to import Lamone as we did, as we did before.

6
00:00:23,550 --> 00:00:31,800
So we were right here from DeKing to import everything.

7
00:00:32,520 --> 00:00:37,070
Then we need to create an empty window and we put it in a variable.

8
00:00:37,650 --> 00:00:40,530
So we will call it roots or window.

9
00:00:40,560 --> 00:00:41,340
It's the same thing.

10
00:00:41,340 --> 00:00:47,840
Silk Road, equal to the window, to the function, Teekay that we create our window.

11
00:00:48,720 --> 00:00:58,560
After that we would put it as a main loop point mentioned before that we start talking about labels.

12
00:00:58,560 --> 00:01:02,310
We do something on our window, so we will change the title.

13
00:01:02,550 --> 00:01:10,410
So rude point title then here we call it to up, for example.

14
00:01:10,680 --> 00:01:13,860
Then we will change the background color.

15
00:01:14,010 --> 00:01:19,110
So rules for you then.

16
00:01:19,110 --> 00:01:20,480
Here we change.

17
00:01:21,090 --> 00:01:32,640
Sorry B.G. for background equal and says, look, we'll see what we have.

18
00:01:33,600 --> 00:01:34,950
So this is our window.

19
00:01:35,550 --> 00:01:38,420
I would change the icons too because I don't like it.

20
00:01:38,790 --> 00:01:52,410
So rude point icon then he'll call it logo point because as you can see, this is our empty window as

21
00:01:52,410 --> 00:01:53,210
we did before.

22
00:01:53,640 --> 00:01:57,780
Now we start doing we want to create a label, then we will it.

23
00:01:58,080 --> 00:02:03,090
So to create a label, we have to put it in variable, as we did with the window.

24
00:02:03,330 --> 00:02:08,400
So we call it, for example, love equal to create a label.

25
00:02:08,580 --> 00:02:11,400
There is a function called label this function.

26
00:02:11,400 --> 00:02:16,140
We create a label for us, so we will call it here label.

27
00:02:17,880 --> 00:02:19,800
This function has a lot of parameters.

28
00:02:20,010 --> 00:02:23,750
The first parameter that we need to do is the name of the window.

29
00:02:23,940 --> 00:02:30,280
So if we want to put this label in the window route, so we will give, we would make here the name.

30
00:02:31,260 --> 00:02:38,100
Then the second there is there is no order between the other parameters we have just to write the first

31
00:02:38,100 --> 00:02:41,630
MI parameter is route then otherwise it doesn't matter.

32
00:02:41,970 --> 00:02:47,820
So we will make here the text that we want to write in the label, for example.

33
00:02:47,830 --> 00:02:49,550
Hi there.

34
00:02:49,920 --> 00:02:52,800
How are you today.

35
00:02:54,040 --> 00:02:54,810
Now that.

36
00:02:55,830 --> 00:02:57,210
So this is our text.

37
00:02:58,080 --> 00:03:02,160
If we will run our program, we will see that there is nothing in our window.

38
00:03:02,580 --> 00:03:03,120
Why?

39
00:03:03,480 --> 00:03:05,580
Because we didn't park label.

40
00:03:06,270 --> 00:03:13,500
It is true that we we have put here roots the name of the window, but this doesn't mean that we will

41
00:03:13,500 --> 00:03:14,430
pack it in the window.

42
00:03:14,640 --> 00:03:21,600
This route means that this label is special for the window route, but it doesn't mean that we packed

43
00:03:21,600 --> 00:03:21,780
it.

44
00:03:22,110 --> 00:03:26,340
So to package, we just need to call the the function back.

45
00:03:26,550 --> 00:03:29,820
So we will write the name of the label, which is love.

46
00:03:30,030 --> 00:03:38,400
Alright, but if we run the program now we will see here I will make it bigger.

47
00:03:38,910 --> 00:03:43,410
So we have here the window and the label as we do.

48
00:03:44,490 --> 00:03:51,900
As you can see the, the color of the, of the, the, the window is always black, but the color of

49
00:03:51,900 --> 00:03:56,430
the background of our label is white y because we didn't change it here.

50
00:03:56,760 --> 00:03:58,250
We will do it, we will do it later.

51
00:03:58,590 --> 00:04:04,530
So as you can see the size of the window is smaller as the size of the label.

52
00:04:04,830 --> 00:04:08,280
But we don't like to do to lie to me to to let it like this.

53
00:04:08,550 --> 00:04:18,420
So we will make a constant size of the window, which is the width and height, so that the size will

54
00:04:18,510 --> 00:04:19,770
be and changeable.

55
00:04:20,910 --> 00:04:27,330
So to do this, we will use the function geometry, which is like this point geometry.

56
00:04:27,960 --> 00:04:33,870
And here inside the party we will put the quotation marks and between the quotation marks and maybe

57
00:04:33,870 --> 00:04:35,250
the size that we want.

58
00:04:35,550 --> 00:04:39,880
So I would put it, for example, five hundred by five hundred.

59
00:04:39,960 --> 00:04:44,310
So five then X then then to do it.

60
00:04:44,610 --> 00:04:49,770
OK, so we will stop it then on it as you can see here.

61
00:04:51,000 --> 00:04:51,930
Sorry, sorry.

62
00:04:53,220 --> 00:04:56,970
As you can see we have here the size and changeable.

63
00:04:57,330 --> 00:04:59,750
So it doesn't, it doesn't depend.

64
00:04:59,980 --> 00:05:08,680
To the size of the labor, then we will do another thing so we would know we'll start editing our label.

65
00:05:09,040 --> 00:05:10,740
There is a lot of things that we can do.

66
00:05:10,810 --> 00:05:14,260
For example, we can change the background, color and the foreground.

67
00:05:14,410 --> 00:05:17,530
We can change the style and type of the font.

68
00:05:17,770 --> 00:05:20,080
And there is a lot of things that we can do.

69
00:05:20,260 --> 00:05:22,830
So we start by the color of the background.

70
00:05:23,110 --> 00:05:25,990
So the change to change the color of the background.

71
00:05:26,260 --> 00:05:31,680
We just need to use the function B.G., which is background that equal.

72
00:05:32,380 --> 00:05:35,720
And here we would like the color that we want.

73
00:05:35,980 --> 00:05:39,730
So, for example, we take as black as the background of the window.

74
00:05:39,920 --> 00:05:44,380
So we will run it and we will see.

75
00:05:44,530 --> 00:05:46,070
As you can see, there is no text.

76
00:05:46,540 --> 00:05:46,870
Why?

77
00:05:46,870 --> 00:05:51,610
Because the color of the text is always black, so we can't see it.

78
00:05:51,890 --> 00:05:54,890
So we will change is to change the color of the text.

79
00:05:55,090 --> 00:05:58,540
It is the same thing of the color of foreground.

80
00:05:58,750 --> 00:06:04,270
So if we will change change, the color of the foreground means that we will change the color of the

81
00:06:04,270 --> 00:06:04,660
text.

82
00:06:04,990 --> 00:06:14,500
So we will use the function avgi for foreground, then equal, then here white, as you can see here,

83
00:06:14,500 --> 00:06:16,660
our our text.

84
00:06:16,690 --> 00:06:17,500
Hi there.

85
00:06:17,510 --> 00:06:18,550
How are you today.

86
00:06:19,210 --> 00:06:26,820
So here we have the function Bije for the background and the function FFG for the foreground.

87
00:06:27,310 --> 00:06:31,510
Then we can change the type of the font.

88
00:06:31,720 --> 00:06:37,990
So for the to do to do that we will use the functions for good font.

89
00:06:39,160 --> 00:06:43,330
That x1 this function font has two principal parameters.

90
00:06:43,540 --> 00:06:49,570
The first parameter is the type of the first and second parameter is the size of the font.

91
00:06:49,990 --> 00:06:51,850
So we can't use it here.

92
00:06:51,850 --> 00:06:56,880
And if any font we want there is something that doesn't work with the content.

93
00:06:56,890 --> 00:07:03,430
I don't know why, but you can use for example, there is this website, it has a lot of fronts and

94
00:07:03,430 --> 00:07:04,540
it is for free.

95
00:07:04,540 --> 00:07:06,280
You can download it and started that.

96
00:07:06,400 --> 00:07:07,130
You will use it.

97
00:07:07,570 --> 00:07:15,240
So for this example, I will take this one called us on the left.

98
00:07:15,340 --> 00:07:18,130
So I would use this font for this example.

99
00:07:18,970 --> 00:07:20,350
We will change it here.

100
00:07:20,440 --> 00:07:23,890
So here we will write the name of this phone.

101
00:07:23,900 --> 00:07:28,000
So I'll do.

102
00:07:31,630 --> 00:07:32,740
I'm sorry.

103
00:07:33,460 --> 00:07:37,480
The name is Amar's on the left.

104
00:07:39,890 --> 00:07:42,950
If we run the program, we will see that the funds will change.

105
00:07:43,370 --> 00:07:51,800
As you can see, to see it very clearly, we will make it bigger here and make the size, for example,

106
00:07:51,800 --> 00:07:52,220
20.

107
00:07:54,590 --> 00:08:03,680
Here we have our text with the front door, the left and the size 20, so as you can see here, we have

108
00:08:04,100 --> 00:08:07,580
not a lot of space between the text and the.

109
00:08:07,580 --> 00:08:13,970
But then here we can use a function called Bud Light, for example.

110
00:08:14,540 --> 00:08:21,880
But why this function will give us a space between the label and what we have above it.

111
00:08:22,190 --> 00:08:24,650
So here will make it just like this.

112
00:08:24,650 --> 00:08:27,080
But Y equals that, for example.

113
00:08:27,180 --> 00:08:33,430
Make it 10 and you will see that we have here and we can make more than this, for example.

114
00:08:35,210 --> 00:08:37,610
And you can see we have here this space.

115
00:08:39,830 --> 00:08:46,790
So that all what I will say about labels so we can change here, we have the text, we can change the

116
00:08:46,790 --> 00:08:54,200
background and foreground the font and size, and we can change the difference by adding and at the

117
00:08:54,200 --> 00:08:56,190
end package with the function back.

118
00:08:56,990 --> 00:08:59,090
So that was all for today.

119
00:08:59,510 --> 00:09:03,290
And I will see you in the next video and stay safe by.
