0
1
00:00:04,820 --> 00:00:06,251
<v ->Hello again, in previous lecture we created</v>
1

2
00:00:06,251 --> 00:00:08,090
our text editor, right?
2

3
00:00:08,090 --> 00:00:09,780
And now, what I want do,
3

4
00:00:09,780 --> 00:00:12,030
let me run our application first.
4

5
00:00:12,030 --> 00:00:15,450
Here, this is our text editor is here,
5

6
00:00:15,450 --> 00:00:17,610
and now I want to create a status bar here
6

7
00:00:17,610 --> 00:00:19,520
in this lesson.
7

8
00:00:19,520 --> 00:00:21,400
So how we can do that?
8

9
00:00:21,400 --> 00:00:22,990
Like before, what we need to do to create
9

10
00:00:22,990 --> 00:00:25,090
another class for our status bar, right?
10

11
00:00:25,090 --> 00:00:29,710
And I will say "class status bar", okay?
11

12
00:00:29,710 --> 00:00:31,310
And now what I need to do,
12

13
00:00:31,310 --> 00:00:33,590
remember we already created a status bar for
13

14
00:00:33,590 --> 00:00:35,420
our application.
14

15
00:00:35,420 --> 00:00:39,630
What we need to use to create a status bar,
15

16
00:00:39,630 --> 00:00:41,220
we need to use a label, right?
16

17
00:00:41,220 --> 00:00:44,870
That's why here, I will inherit my status bar class
17

18
00:00:44,870 --> 00:00:46,370
from label, okay?
18

19
00:00:46,370 --> 00:00:47,440
Don't forget that.
19

20
00:00:47,440 --> 00:00:51,920
And here, what I need to say, I need to use def like before,
20

21
00:00:51,920 --> 00:00:53,190
init, right?
21

22
00:00:53,190 --> 00:00:56,173
And here, I will use this parameters, okay.
22

23
00:00:58,380 --> 00:01:00,630
And here, I will paste them here,
23

24
00:01:00,630 --> 00:01:05,630
and after that what I need to use?, I need to use label dot
24

25
00:01:05,770 --> 00:01:08,300
underscore underscore init, right?
25

26
00:01:08,300 --> 00:01:11,620
And again, same parameters here.
26

27
00:01:11,620 --> 00:01:13,410
And here, what I need to use, I need to use
27

28
00:01:13,410 --> 00:01:18,270
self dot parent equals parent, okay?
28

29
00:01:18,270 --> 00:01:21,680
And now I need to use self geometry measures
29

30
00:01:21,680 --> 00:01:23,820
to display my status bar, right?
30

31
00:01:23,820 --> 00:01:26,833
So will say here, self dot pack,
31

32
00:01:28,880 --> 00:01:32,623
and side equals bottom, okay?
32

33
00:01:34,020 --> 00:01:36,060
And after, what I need to use here,
33

34
00:01:36,060 --> 00:01:40,180
also let's use text property for our status bar,
34

35
00:01:41,400 --> 00:01:44,523
I will say self dot config,
35

36
00:01:45,550 --> 00:01:49,650
and text is going to be status bar, okay?
36

37
00:01:53,940 --> 00:01:56,850
Now it's ready, but what we need to do here,
37

38
00:01:56,850 --> 00:01:58,510
we need to create this widget, right?
38

39
00:01:58,510 --> 00:02:03,100
I will say self dot status bar equals,
39

40
00:02:03,100 --> 00:02:07,403
this is instance, and my class name will be status bar.
40

41
00:02:09,340 --> 00:02:10,220
Okay?
41

42
00:02:10,220 --> 00:02:12,540
If I run my application now, I can see what here,
42

43
00:02:12,540 --> 00:02:13,373
what we need to use?
43

44
00:02:13,373 --> 00:02:15,480
We need to use self parameter, by the way first.
44

45
00:02:15,480 --> 00:02:17,037
I can see my status bar.
45

46
00:02:20,560 --> 00:02:24,800
Now here, as you see, now our status bar is here,
46

47
00:02:24,800 --> 00:02:27,210
and also its text is status bar,
47

48
00:02:27,210 --> 00:02:29,410
and for now that's all, see you in the next.
