0
1
00:00:05,140 --> 00:00:06,610
<v ->Hello again, in previous lecture what we did,</v>
1

2
00:00:06,610 --> 00:00:10,077
we created our find dialog window, right?
2

3
00:00:10,077 --> 00:00:11,520
And it's here.
3

4
00:00:11,520 --> 00:00:13,930
So, in this lesson what I want to do,
4

5
00:00:13,930 --> 00:00:17,110
I want to actually remove this scroll bar, okay,
5

6
00:00:17,110 --> 00:00:19,610
x-scroll bar, because actually, we don't need it.
6

7
00:00:19,610 --> 00:00:22,820
And it doesn't look nice you see.
7

8
00:00:22,820 --> 00:00:26,190
And using this scroll bar is not easy.
8

9
00:00:26,190 --> 00:00:28,440
So, I want to create a new scroll bar
9

10
00:00:28,440 --> 00:00:32,780
also for a y-direction, I create a new scroll bar,
10

11
00:00:32,780 --> 00:00:34,630
okay, so you see, this is not,
11

12
00:00:34,630 --> 00:00:39,630
this is a old style, so I will create a new style scroll bar
12

13
00:00:39,920 --> 00:00:43,060
okay, so, today what I need to do here,
13

14
00:00:43,060 --> 00:00:46,620
I need to find my text editor, right.
14

15
00:00:46,620 --> 00:00:51,340
It's class, its class must be somewhere here.
15

16
00:00:51,340 --> 00:00:53,460
Status bar tool bar and text editor.
16

17
00:00:53,460 --> 00:00:54,690
Okay, its here.
17

18
00:00:54,690 --> 00:00:56,480
So, what I am going to do here,
18

19
00:00:56,480 --> 00:00:59,210
I will remove all of this, guys.
19

20
00:00:59,210 --> 00:01:02,028
Or we can comment out this, guys, okay.
20

21
00:01:02,028 --> 00:01:03,760
And here, what I will say.
21

22
00:01:03,760 --> 00:01:05,240
I will say scroll...
22

23
00:01:07,120 --> 00:01:12,120
Scroll bar equals scroll bar constructors,
23

24
00:01:13,680 --> 00:01:16,430
scroll bar constructor method here and here,
24

25
00:01:16,430 --> 00:01:20,100
I will say self and I want to use border.
25

26
00:01:20,100 --> 00:01:22,520
Border equals five, let's say.
26

27
00:01:22,520 --> 00:01:25,403
Okay, also I will use relief, of course, for our border.
27

28
00:01:26,327 --> 00:01:29,250
Relief equals sunken, okay.
28

29
00:01:29,250 --> 00:01:34,020
And our border size will be five.
29

30
00:01:34,020 --> 00:01:35,160
And after that, here, what I need to say
30

31
00:01:35,160 --> 00:01:37,133
self.configure
31

32
00:01:40,050 --> 00:01:41,403
yscrollbar.
32

33
00:01:43,260 --> 00:01:48,027
Scroll bar command equals scroll bar
33

34
00:01:50,470 --> 00:01:52,675
dot set, okay.
34

35
00:01:52,675 --> 00:01:57,380
And, after that, what I need to do here and say scroll bar
35

36
00:01:59,050 --> 00:02:04,050
dot config, for the config, I will use command
36

37
00:02:06,220 --> 00:02:11,220
equals self dot y view, right.
37

38
00:02:11,860 --> 00:02:15,270
And the last thing what I need to do here,
38

39
00:02:15,270 --> 00:02:18,480
I need to say scroll_bar.pack, right
39

40
00:02:18,480 --> 00:02:20,490
and use pack geometry manager
40

41
00:02:20,490 --> 00:02:25,490
and here I'll say side equals right, okay.
41

42
00:02:28,140 --> 00:02:31,903
And fill y, okay.
42

43
00:02:33,400 --> 00:02:37,300
Now if I run my application, this scroll bar looks better,
43

44
00:02:37,300 --> 00:02:39,810
okay, and it looks more modern.
44

45
00:02:39,810 --> 00:02:41,153
So, what's wrong here?
45

46
00:02:42,190 --> 00:02:46,350
Y scroll bar double L here,
46

47
00:02:46,350 --> 00:02:51,350
y scroll bar command and command is fine.
47

48
00:02:51,410 --> 00:02:52,653
I think it's okay now.
48

49
00:02:55,340 --> 00:02:57,190
So, what's wrong here, again?
49

50
00:02:57,190 --> 00:03:02,190
Self.configure, right and y scroll,
50

51
00:03:02,720 --> 00:03:07,260
y scroll command, sorry, it must be y scroll command,
51

52
00:03:07,260 --> 00:03:11,290
okay, not y scroll bar, scroll command scroll bar
52

53
00:03:11,290 --> 00:03:13,980
dot set and let me check it again.
53

54
00:03:13,980 --> 00:03:18,980
Side equals right fill y and I think it's fine now.
54

55
00:03:19,558 --> 00:03:21,660
Let me run it again.
55

56
00:03:21,660 --> 00:03:24,735
And it's, so this one is, sorry, it's
56

57
00:03:24,735 --> 00:03:28,610
pack forget, must be pack only, right.
57

58
00:03:28,610 --> 00:03:30,023
Now it will be fine.
58

59
00:03:32,070 --> 00:03:35,650
And scroll bar dot pack side right fill y.
59

60
00:03:35,650 --> 00:03:36,487
It's okay now.
60

61
00:03:37,836 --> 00:03:39,700
And now, check it again.
61

62
00:03:39,700 --> 00:03:42,700
Now, you see our, for x direction,
62

63
00:03:42,700 --> 00:03:45,310
we dont need scroll bar and this one is better.
63

64
00:03:45,310 --> 00:03:47,520
It looks modern, okay.
64

65
00:03:47,520 --> 00:03:49,890
And, for example, if you need scroll bar,
65

66
00:03:49,890 --> 00:03:52,160
you see your scroll bar is here.
66

67
00:03:52,160 --> 00:03:56,750
And scrolling it down and up, it's easier than before.
67

68
00:03:56,750 --> 00:03:57,670
You see?
68

69
00:03:57,670 --> 00:03:58,893
For example here.
69

70
00:04:00,670 --> 00:04:05,670
And now you can up and down your scroll bar e--
70

71
00:04:07,340 --> 00:04:11,450
easier, okay, that one is, to use this one is easier.
71

72
00:04:11,450 --> 00:04:16,430
And in next lesson, in next one  sorry.
72

73
00:04:16,430 --> 00:04:18,480
In next lesson, what we are going to do,
73

74
00:04:18,480 --> 00:04:20,330
we are going to finish our project
74

75
00:04:20,330 --> 00:04:23,810
and this lesson we create our new,
75

76
00:04:23,810 --> 00:04:25,690
we created our new scroll bar.
76

77
00:04:25,690 --> 00:04:26,890
For now, that's all.
77

78
00:04:26,890 --> 00:04:27,890
See you in the next.
