0
1
00:00:04,690 --> 00:00:05,523
<v Narrator>Hello again, in the previous lecture</v>
1

2
00:00:05,523 --> 00:00:08,810
what we did, we created our main menu class
2

3
00:00:08,810 --> 00:00:10,720
and also find menu items, right.
3

4
00:00:10,720 --> 00:00:12,880
And in this lesson what we are going to do
4

5
00:00:12,880 --> 00:00:15,040
we are going to create our edit menu
5

6
00:00:15,040 --> 00:00:16,850
and also edit menu items.
6

7
00:00:16,850 --> 00:00:18,920
So that here, let's use a separator here
7

8
00:00:18,920 --> 00:00:23,000
and I will say edit menu.
8

9
00:00:23,000 --> 00:00:26,720
And here what we will do, it's very similar actually
9

10
00:00:26,720 --> 00:00:28,620
here what we need to say,
10

11
00:00:28,620 --> 00:00:33,440
self dot edit equals menu, right.
11

12
00:00:33,440 --> 00:00:37,200
And here I need to use self parameter first and after that
12

13
00:00:37,200 --> 00:00:41,081
tear off equals zero. Okay?
13

14
00:00:41,081 --> 00:00:43,720
And now what I need to do, I need to create sub-menus
14

15
00:00:43,720 --> 00:00:47,143
for my edit, right, and I say self, dot, edit,
15

16
00:00:48,270 --> 00:00:52,220
add command, and here I will say
16

17
00:00:52,220 --> 00:00:56,863
label, equals copy, okay?
17

18
00:00:57,810 --> 00:01:01,930
And after that what I nned to use, also here,
18

19
00:01:01,930 --> 00:01:06,930
I will not use, by the way, here for the copy images, icons.
19

20
00:01:07,600 --> 00:01:10,665
I will only use here, shortcut, okay.
20

21
00:01:10,665 --> 00:01:14,440
Accelerator
21

22
00:01:14,440 --> 00:01:15,703
equals, I will say,
22

23
00:01:17,980 --> 00:01:22,350
Ctrl plus C, okay?
23

24
00:01:22,350 --> 00:01:26,590
And here, yes, press Ctrl D, okay,
24

25
00:01:26,590 --> 00:01:28,643
and second one will be Paste,
25

26
00:01:29,750 --> 00:01:33,420
and accelerator will be Ctrl V, right,
26

27
00:01:33,420 --> 00:01:37,780
and other one, of course we are going to create here,
27

28
00:01:37,780 --> 00:01:42,550
a command property for our menus, but not now, okay?
28

29
00:01:42,550 --> 00:01:44,270
We are going to do later.
29

30
00:01:44,270 --> 00:01:48,920
And let's create other one, Paste, and after that Cut,
30

31
00:01:48,920 --> 00:01:50,663
and here I will say Cut,
31

32
00:01:52,720 --> 00:01:53,890
for the accelerator
32

33
00:01:53,890 --> 00:01:57,730
I will say x, okay, Ctrl X,
33

34
00:01:57,730 --> 00:01:59,670
and the last one will be,
34

35
00:01:59,670 --> 00:02:03,450
actually we have two more, the second one,
35

36
00:02:03,450 --> 00:02:06,510
the next one will be Ctrl D again
36

37
00:02:06,510 --> 00:02:09,920
and here I will say Clear All,
37

38
00:02:09,920 --> 00:02:12,162
okay? Clear All.
38

39
00:02:12,162 --> 00:02:14,420
And the other one will be Find.
39

40
00:02:14,420 --> 00:02:17,300
Here I will say simply, Find.
40

41
00:02:17,300 --> 00:02:20,520
And for this one, for the Clear All,
41

42
00:02:20,520 --> 00:02:24,983
let's use plus again,
42

43
00:02:28,050 --> 00:02:30,780
and c we can use here, okay,
43

44
00:02:30,780 --> 00:02:34,210
for the, for Find,
44

45
00:02:34,210 --> 00:02:37,310
we can use Ctrl F okay?
45

46
00:02:37,310 --> 00:02:40,130
And that's all, now we create our menu
46

47
00:02:40,130 --> 00:02:42,450
but what we need to do here, need to use here
47

48
00:02:42,450 --> 00:02:45,223
self dot add cascade, right,
48

49
00:02:46,210 --> 00:02:49,360
add cascade and here,
49

50
00:02:49,360 --> 00:02:50,680
label equals
50

51
00:02:52,170 --> 00:02:53,670
edit, right,
51

52
00:02:53,670 --> 00:02:56,210
and after that again we need to say
52

53
00:02:56,210 --> 00:03:00,083
menu equals self dot edit.
53

54
00:03:01,220 --> 00:03:05,090
Now our menu is ready, let's run our application.
54

55
00:03:05,090 --> 00:03:07,400
As you see now our edit menu is here,
55

56
00:03:07,400 --> 00:03:10,310
and also sub-menus, and we can see here
56

57
00:03:10,310 --> 00:03:12,090
our shortcuts, right?
57

58
00:03:12,090 --> 00:03:14,091
And for now that's all, as I said,
58

59
00:03:14,091 --> 00:03:17,050
I didn't use here, icons for these guys,
59

60
00:03:17,050 --> 00:03:19,860
of course you can use, but we already used icons,
60

61
00:03:19,860 --> 00:03:23,330
for File, that's why I didn't create icons here
61

62
00:03:23,330 --> 00:03:25,670
for the menu items, okay.
62

63
00:03:25,670 --> 00:03:27,670
For now that's all, see you in the next.
