0
1
00:00:04,530 --> 00:00:05,363
<v Volkan>Hello, everybody.</v>
1

2
00:00:05,363 --> 00:00:06,870
In this section we are going to create
2

3
00:00:06,870 --> 00:00:08,190
a really, really nice application
3

4
00:00:08,190 --> 00:00:10,320
and it will be very informative.
4

5
00:00:10,320 --> 00:00:11,320
What is our application?
5

6
00:00:11,320 --> 00:00:15,210
It is an address book application and this is our main pages here.
6

7
00:00:15,210 --> 00:00:17,450
And what we are going to build , let me show it.
7

8
00:00:17,450 --> 00:00:19,800
For example, here this is our main page, right,
8

9
00:00:20,922 --> 00:00:23,620
and we are going to create three different buttons.
9

10
00:00:23,620 --> 00:00:24,810
And the first one is my people.
10

11
00:00:24,810 --> 00:00:27,400
If I click my people button, as you see now,
11

12
00:00:27,400 --> 00:00:30,670
here, this is my persons, this page.
12

13
00:00:30,670 --> 00:00:33,110
And by the way this is my main window.
13

14
00:00:33,110 --> 00:00:34,650
I will always keep this window.
14

15
00:00:34,650 --> 00:00:37,830
But for example, if I click another button here,
15

16
00:00:37,830 --> 00:00:41,747
you see I closed that my people window
16

17
00:00:41,747 --> 00:00:43,430
but I opened a new window.
17

18
00:00:43,430 --> 00:00:44,797
But I will keep my main window.
18

19
00:00:45,970 --> 00:00:46,903
This is important.
19

20
00:00:48,329 --> 00:00:50,020
And let me click it again.
20

21
00:00:50,020 --> 00:00:52,660
Here we have our persons, right?
21

22
00:00:52,660 --> 00:00:55,410
And here we are going to get all the persons
22

23
00:00:55,410 --> 00:00:56,950
from our database.
23

24
00:00:56,950 --> 00:00:58,900
Of course we are going to use a database
24

25
00:00:58,900 --> 00:01:02,120
for this application, and if I want to add new people,
25

26
00:01:02,120 --> 00:01:03,490
I will click add button.
26

27
00:01:03,490 --> 00:01:06,680
And here, let's fill it.
27

28
00:01:06,680 --> 00:01:09,023
And here I will say, for example,
28

29
00:01:10,070 --> 00:01:13,383
Katya, something like that, and surname's Black.
29

30
00:01:14,260 --> 00:01:19,260
And email, katya@gmail.com.
30

31
00:01:19,550 --> 00:01:22,100
And phone number, plus seven something like that,
31

32
00:01:22,100 --> 00:01:23,130
okay, doesn't matter.
32

33
00:01:23,130 --> 00:01:28,130
And here I will say Krasnodar, Russia.
33

34
00:01:29,160 --> 00:01:33,880
And if I say add button before I will cut this one.
34

35
00:01:33,880 --> 00:01:34,780
I want to show you something.
35

36
00:01:34,780 --> 00:01:37,960
And if I say add person, as you see it said
36

37
00:01:37,960 --> 00:01:40,270
fields can't be empty.
37

38
00:01:40,270 --> 00:01:43,630
Now what I need to do, I need to fill all areas here.
38

39
00:01:43,630 --> 00:01:46,900
And I will paste back my phone number.
39

40
00:01:46,900 --> 00:01:49,330
If I say add person, as you see now,
40

41
00:01:49,330 --> 00:01:52,920
our person has been added to our database.
41

42
00:01:52,920 --> 00:01:56,250
And now let's go back to our my people.
42

43
00:01:56,250 --> 00:01:57,530
And if I click my people,
43

44
00:01:57,530 --> 00:01:59,470
as you see, Katya Black is here.
44

45
00:01:59,470 --> 00:02:01,220
Of course we can also update it,
45

46
00:02:01,220 --> 00:02:02,233
and now how can I do it?
46

47
00:02:02,233 --> 00:02:06,410
I'll say, Katya, update.
47

48
00:02:06,410 --> 00:02:09,510
Here I will say for example, Olga
48

49
00:02:09,510 --> 00:02:10,780
instead of Katya.
49

50
00:02:10,780 --> 00:02:15,280
And of course we can update all areas here.
50

51
00:02:15,280 --> 00:02:19,580
And here let's say, for example, Moscow, Russia.
51

52
00:02:19,580 --> 00:02:22,050
And let's say update person.
52

53
00:02:22,050 --> 00:02:23,973
As you see, person has been updated.
53

54
00:02:25,000 --> 00:02:28,590
And other thing about our application,
54

55
00:02:28,590 --> 00:02:31,270
now we saw how we can use add and update.
55

56
00:02:31,270 --> 00:02:35,550
Also let's learn how we can use display button.
56

57
00:02:35,550 --> 00:02:37,060
I say display.
57

58
00:02:37,060 --> 00:02:39,180
As you see now, display is here.
58

59
00:02:39,180 --> 00:02:42,430
Let me, again, that one.
59

60
00:02:42,430 --> 00:02:44,350
Mary Brown, display.
60

61
00:02:44,350 --> 00:02:47,830
And here our fields, we cannot edit these fields.
61

62
00:02:47,830 --> 00:02:48,663
This is important.
62

63
00:02:48,663 --> 00:02:52,800
I want to show you how we can create entries
63

64
00:02:52,800 --> 00:02:54,980
or text areas, a text widget,
64

65
00:02:54,980 --> 00:02:56,420
and we can use it,
65

66
00:02:56,420 --> 00:02:59,645
users cannot edit these areas.
66

67
00:02:59,645 --> 00:03:01,230
And as you see, we don't have a button here
67

68
00:03:01,230 --> 00:03:03,410
because we only display our person.
68

69
00:03:03,410 --> 00:03:06,760
And after also we have delete button.
69

70
00:03:06,760 --> 00:03:08,230
And I will click delete button.
70

71
00:03:08,230 --> 00:03:10,830
As you see, it said are you sure to delete this person?
71

72
00:03:10,830 --> 00:03:12,390
I will say no.
72

73
00:03:12,390 --> 00:03:15,953
You see, nothing happens but if I say here,
73

74
00:03:17,380 --> 00:03:21,750
delete, and yes, and person has been deleted.
74

75
00:03:21,750 --> 00:03:23,660
If I go back to my people
75

76
00:03:23,660 --> 00:03:25,810
and I close my window, by the way,
76

77
00:03:25,810 --> 00:03:28,680
and go, as you see now,
77

78
00:03:28,680 --> 00:03:31,010
Olga, her name was Olga, right?
78

79
00:03:31,010 --> 00:03:31,910
Olga is not here.
79

80
00:03:31,910 --> 00:03:36,420
Let's also try to delete this one, Mary.
80

81
00:03:36,420 --> 00:03:37,783
Delete, yes.
81

82
00:03:38,960 --> 00:03:40,680
And if I go back to my people,
82

83
00:03:40,680 --> 00:03:42,953
as you see, Mary also is not here anymore.
83

84
00:03:44,560 --> 00:03:45,393
What is next?
84

85
00:03:45,393 --> 00:03:47,585
Also I want to talk about here the other buttons.
85

86
00:03:47,585 --> 00:03:50,090
Add people is same.
86

87
00:03:50,090 --> 00:03:53,480
Now it's like quick, a shortcut for add people.
87

88
00:03:53,480 --> 00:03:57,520
And the other one is about us window.
88

89
00:03:57,520 --> 00:04:00,587
As you see now, it's very simple about us window.
89

90
00:04:01,540 --> 00:04:03,380
Just we have a text here.
90

91
00:04:03,380 --> 00:04:05,550
What is important about our application,
91

92
00:04:05,550 --> 00:04:08,320
let me introduce it, let me tell you something.
92

93
00:04:08,320 --> 00:04:11,720
Now with this application we are going to learn
93

94
00:04:11,720 --> 00:04:15,290
how we can work with multiple python files.
94

95
00:04:15,290 --> 00:04:16,123
What I mean?
95

96
00:04:16,123 --> 00:04:20,890
Here, we will create different four python files,
96

97
00:04:20,890 --> 00:04:23,440
not only one, because if you want to create
97

98
00:04:23,440 --> 00:04:26,860
professional applications, if you want to be
98

99
00:04:26,860 --> 00:04:28,600
a really professional developer,
99

100
00:04:28,600 --> 00:04:31,770
you need to use multiple files for your projects.
100

101
00:04:31,770 --> 00:04:34,690
Only one file is not enough and it's not good,
101

102
00:04:34,690 --> 00:04:37,060
and it's not pythonic way.
102

103
00:04:37,060 --> 00:04:39,250
So I will try to show you with this application
103

104
00:04:39,250 --> 00:04:44,030
how you can use multiple python files for our application,
104

105
00:04:44,030 --> 00:04:46,900
and of course we are going to use a database
105

106
00:04:46,900 --> 00:04:50,280
and we will get all the values from database
106

107
00:04:50,280 --> 00:04:53,923
and we will add our persons to our database.
107

108
00:04:54,885 --> 00:04:56,950
This also very important.
108

109
00:04:56,950 --> 00:04:58,860
As I said, it's very, very useful,
109

110
00:04:58,860 --> 00:05:00,940
and very, very informative lesson,
110

111
00:05:00,940 --> 00:05:02,920
informative section, actually,
111

112
00:05:02,920 --> 00:05:07,680
because I think we will almost two hours,
112

113
00:05:07,680 --> 00:05:12,680
we will make the lessons for this application.
113

114
00:05:12,870 --> 00:05:14,730
And I hope you will learn many things.
114

115
00:05:14,730 --> 00:05:15,930
For now, that's all.
115

116
00:05:15,930 --> 00:05:16,930
See you in the next.
