1
00:00:00,750 --> 00:00:01,560
Hello, everyone.

2
00:00:02,190 --> 00:00:08,160
Today, are we show you how you can create an entity and put it in the up, as you as you know, the

3
00:00:08,160 --> 00:00:12,240
ideas are very useful with any application you can create.

4
00:00:12,600 --> 00:00:21,360
So the first thing that I will show you is how to create an empty entry without doing anything.

5
00:00:21,540 --> 00:00:27,480
So what we did before we created a labels and buttons.

6
00:00:27,720 --> 00:00:35,460
So to create a label, we just used a function called label and to create a button, we used a function

7
00:00:35,640 --> 00:00:37,020
called Buttons.

8
00:00:37,350 --> 00:00:45,210
The same thing here to create an entity, we will use the function called entry so that we put it always.

9
00:00:45,210 --> 00:00:46,790
We have to put it in everyone.

10
00:00:47,100 --> 00:00:50,790
So we give it a name, for example, E.A. for entry.

11
00:00:51,150 --> 00:00:56,630
So equal entry here then this entry is for the roots.

12
00:00:57,270 --> 00:00:59,340
So the first part is rules.

13
00:01:00,240 --> 00:01:03,870
We can't just stay here and we will buckets, as you can see here.

14
00:01:03,900 --> 00:01:12,270
And I will show you the problem that I told you about the entry of about working in the same line.

15
00:01:12,450 --> 00:01:14,180
I will show you the problem here.

16
00:01:14,550 --> 00:01:20,030
So we have here, we will put it directly back on the back.

17
00:01:20,370 --> 00:01:24,960
And you will see here we have and you can write anything you want.

18
00:01:25,620 --> 00:01:25,980
So.

19
00:01:27,000 --> 00:01:34,460
If we want to change the width and the height of this country, we can't use as before the functions

20
00:01:34,620 --> 00:01:36,190
but in here.

21
00:01:36,270 --> 00:01:37,440
But but what?

22
00:01:38,010 --> 00:01:40,080
Because it doesn't work with the arteries.

23
00:01:40,230 --> 00:01:47,070
So to change the size or to change the width, we will use the function called with.

24
00:01:47,070 --> 00:01:52,620
Or we can just write w w for width and we will give it a volume, for example.

25
00:01:52,620 --> 00:01:54,060
We give it the value of 30.

26
00:01:54,770 --> 00:02:01,780
OK, but for the height we can't, we can't control the height with the function, but we can't control

27
00:02:01,780 --> 00:02:05,670
it with another thing, which is we will control the font size.

28
00:02:06,030 --> 00:02:10,470
If we control the font size, this thing will control the height.

29
00:02:10,710 --> 00:02:12,930
So I will show you just here for the width.

30
00:02:13,260 --> 00:02:15,920
As you can see, we have here thirtyfold do it.

31
00:02:16,740 --> 00:02:22,470
But if we want to change the the height, we can't we can't use, for example, high equal turn.

32
00:02:22,500 --> 00:02:28,530
For example, we have learned about this, as you can see, even if we use the function.

33
00:02:28,530 --> 00:02:30,410
But why we would have the same.

34
00:02:31,050 --> 00:02:35,490
So to fix this, will you add the function font equal here?

35
00:02:35,490 --> 00:02:39,600
We can we can change the name of the font, but I will realize this is like this.

36
00:02:39,960 --> 00:02:44,330
I if it's not I, that will take the font by default.

37
00:02:44,400 --> 00:02:50,120
OK, so right now then the size I will take the size 20 to make it bigger.

38
00:02:51,180 --> 00:02:54,620
So you can see this is our speech tonight was more.

39
00:02:55,260 --> 00:03:00,390
But if you want to make a space, for example, between this country and this model of the window,

40
00:03:00,660 --> 00:03:02,190
we can use it here in the park.

41
00:03:02,190 --> 00:03:07,700
So we will make but the Y equal to, for example.

42
00:03:08,670 --> 00:03:10,710
So we we have this little space.

43
00:03:12,030 --> 00:03:14,850
This is an entry, but it does nothing.

44
00:03:15,000 --> 00:03:19,710
So to make it more useful, we will add the button.

45
00:03:20,100 --> 00:03:27,060
Then I will show you what we will, we will create a button then we want from this button.

46
00:03:27,060 --> 00:03:33,750
If we press this button and we have a text inside this country, we will print it as a label.

47
00:03:33,930 --> 00:03:42,450
OK, so the first thing that we need to do is to create a button so that, for example, a call button.

48
00:03:43,250 --> 00:03:52,110
So there's a lot of spaces button that here will make it ruins the text.

49
00:03:54,210 --> 00:04:04,530
We give it, print the font equal what we we will give it on.

50
00:04:04,530 --> 00:04:05,250
Going to wait.

51
00:04:06,220 --> 00:04:08,180
I'll do it then.

52
00:04:08,460 --> 00:04:09,980
The the size.

53
00:04:10,590 --> 00:04:22,140
It's fifteen but for the for the four for the building we will give it some but x equal ten then but

54
00:04:22,500 --> 00:04:27,810
Y equals danger then we will Puckett's so.

55
00:04:28,020 --> 00:04:32,850
But that's ok, we'll have it here.

56
00:04:33,150 --> 00:04:34,050
So we want that.

57
00:04:34,050 --> 00:04:41,280
If we press this button we will have a label here which has the text that we have written here.

58
00:04:41,340 --> 00:04:48,480
For example, if we write here high and we press this button, we have high here, OK, we will do it

59
00:04:48,480 --> 00:04:48,930
like this.

60
00:04:49,290 --> 00:04:53,310
To do this, we have to add a command to this, to our buttons.

61
00:04:53,310 --> 00:04:55,850
So here we have command equals.

62
00:04:55,860 --> 00:05:04,350
For example, click as before, then we have to to we have to define a function called click.

63
00:05:04,620 --> 00:05:09,720
So def click parentheses then codons.

64
00:05:09,720 --> 00:05:10,770
And here we will.

65
00:05:11,070 --> 00:05:12,390
Here we create a label.

66
00:05:12,690 --> 00:05:13,080
Yeah.

67
00:05:13,410 --> 00:05:24,360
But before that we as we as we did before I will show you the label equals label then here root you

68
00:05:24,360 --> 00:05:36,010
put it in the roots and here text equals for example I will change after then I will give the font equation's

69
00:05:36,570 --> 00:05:38,280
for example a.

70
00:05:41,710 --> 00:05:43,940
Boom, then left.

71
00:05:44,230 --> 00:05:50,260
I think that this is the phones that we used before then, I would give it here 30.

72
00:05:52,560 --> 00:06:08,030
OK, then we will back this legal angle, but here we give it some prodding, but it's not like we just

73
00:06:08,040 --> 00:06:19,040
used, but Y equals 10 then here we will give it a bad way to equal equal status.

74
00:06:20,070 --> 00:06:23,380
OK, I will see if there is no OK.

75
00:06:23,400 --> 00:06:25,360
There is no use for this.

76
00:06:26,010 --> 00:06:27,810
No I wouldn't.

77
00:06:27,860 --> 00:06:35,910
I want you to know that there is if we have a text here, if we put text here and we want to get this

78
00:06:35,910 --> 00:06:42,690
text and use it for another thing, and in this case, we want to take this to this text and print it

79
00:06:42,690 --> 00:06:43,510
here in the label.

80
00:06:43,920 --> 00:06:47,460
So there is a function called get this function.

81
00:06:47,460 --> 00:06:51,060
We'll get this text and store it in a variable as if you want.

82
00:06:51,360 --> 00:06:58,230
Then we will use this function or this variable which has the value here for this example.

83
00:06:58,370 --> 00:06:59,070
OK.

84
00:06:59,570 --> 00:07:08,340
OK, so to do this, we will call the function get and this function will work with the entry because

85
00:07:08,760 --> 00:07:13,660
we had the text that we wanted to take is written in the country.

86
00:07:14,190 --> 00:07:22,440
So here to put it, I will show you something before that we do this, I want you to know that if we

87
00:07:22,440 --> 00:07:27,840
have, for example, a variable called one, for example, that has the value.

88
00:07:29,700 --> 00:07:33,060
Hello, how are you?

89
00:07:34,320 --> 00:07:38,220
This we have a very important word that has has the value.

90
00:07:38,980 --> 00:07:39,870
Hello, how are you?

91
00:07:40,290 --> 00:07:48,300
So if we want to if we want our label, that has if we want to put this text, which is hello, how

92
00:07:48,300 --> 00:07:55,560
are you in our label, we don't have to write this sentence two times in the Bible and here.

93
00:07:55,860 --> 00:08:03,660
So we can just in the place of this of this text, for example, we make we give the name of our variable,

94
00:08:03,780 --> 00:08:07,170
for example, variable var as we have here.

95
00:08:07,170 --> 00:08:09,120
VAR equals hello, how are you.

96
00:08:09,450 --> 00:08:16,320
We would put here in the name of the variable and this function text will take the value of this variable

97
00:08:16,320 --> 00:08:17,400
and put it in the label.

98
00:08:17,430 --> 00:08:17,770
OK.

99
00:08:17,790 --> 00:08:22,130
It works when I am saying this because we need it now.

100
00:08:23,370 --> 00:08:29,040
As I told you, to get the text that we have in the country, I will take this off.

101
00:08:30,360 --> 00:08:34,150
I will make it harder before I will change after.

102
00:08:34,560 --> 00:08:43,620
So here, if we have if we want to take the value or the text that we have written in the entry, we

103
00:08:43,620 --> 00:08:46,620
will use the function, get the box.

104
00:08:46,620 --> 00:08:49,610
We want to store this value in a variable.

105
00:08:49,620 --> 00:08:57,870
So we would call it, for example, text, text value, call text equals equals this country, which

106
00:08:57,870 --> 00:08:59,600
is E.A. that.

107
00:08:59,970 --> 00:09:08,080
So that gets but as you can see, if we use this function gets we have we we have an error.

108
00:09:08,250 --> 00:09:08,970
I will show you.

109
00:09:10,800 --> 00:09:13,530
So this we have an error here.

110
00:09:14,730 --> 00:09:22,530
I don't know why they are doing this error, but to fix this error, we need just to do this as we have

111
00:09:22,530 --> 00:09:22,950
here.

112
00:09:23,520 --> 00:09:25,000
It's the.

113
00:09:26,040 --> 00:09:34,770
And here we have a country that back if we unite the country that's parked in another line, you will

114
00:09:34,770 --> 00:09:35,790
see that there is no.

115
00:09:38,040 --> 00:09:41,220
I don't know I don't know why they are doing this.

116
00:09:42,060 --> 00:09:53,070
But the problem is in this line, if I told you that you need to write this this definition or the creation

117
00:09:53,070 --> 00:09:58,350
of the entity or label, it is set up in one line, then the [REMOVED] in another line.

118
00:09:58,610 --> 00:10:07,230
OK, so as you can see, we have high because because we just here we just put the text.

119
00:10:07,890 --> 00:10:16,440
But if we want that's the we will print or we will give the the the label, the text that we have in

120
00:10:16,440 --> 00:10:16,950
the country.

121
00:10:17,070 --> 00:10:23,510
So the text that we have, you know, it is here it is storage in the variable called text that.

122
00:10:23,520 --> 00:10:30,450
So we just need to write here, text the name of the variable text here.

123
00:10:30,450 --> 00:10:36,660
If we have text, this text is the function for the label function then the text.

124
00:10:36,960 --> 00:10:42,560
This text is the variable that has the value written in the country.

125
00:10:42,720 --> 00:10:43,640
We will try it out.

126
00:10:43,890 --> 00:10:46,570
So here we have this, for example.

127
00:10:46,590 --> 00:10:47,110
Right.

128
00:10:48,300 --> 00:10:50,340
Hi, how are you.

129
00:10:50,700 --> 00:10:51,230
For example.

130
00:10:52,170 --> 00:10:52,610
Sorry.

131
00:10:53,010 --> 00:10:55,690
So if you click here print we will see it.

132
00:10:55,710 --> 00:11:04,070
Hi, how are you with the form that we have chosen here, I was left with a size of thirty and with

133
00:11:04,370 --> 00:11:07,890
the padding as we put here, we can change a lot of things.

134
00:11:08,340 --> 00:11:12,120
But as you can see, we have here in the text the same text.

135
00:11:12,120 --> 00:11:19,890
Text is in our label here because we have storage, the value of our the of text in the volume, the

136
00:11:19,890 --> 00:11:20,760
variable text.

137
00:11:21,000 --> 00:11:28,050
Then we took this variable and we put it in the function text inside the label so that it takes the

138
00:11:28,050 --> 00:11:31,150
value, which is the text, and put it in the label.

139
00:11:31,830 --> 00:11:39,080
So that was all about entries and we talk about voting later.

140
00:11:39,510 --> 00:11:44,220
So I see you in the next video and stay safe by.
