1
00:00:06,840 --> 00:00:07,510
Welcome back.

2
00:00:08,190 --> 00:00:10,260
In this lecture, we'll explore.

3
00:00:11,540 --> 00:00:15,500
The different ways to create layered.

4
00:00:16,440 --> 00:00:19,140
We will start by importing by Sam.

5
00:00:22,590 --> 00:00:23,880
As S.G..

6
00:00:24,850 --> 00:00:27,760
Now, let's create a to do list player.

7
00:00:28,360 --> 00:00:34,090
I'll play a layout, which will be a list of list.

8
00:00:34,810 --> 00:00:37,470
This will be S.G. the next.

9
00:00:38,250 --> 00:00:39,510
There's one.

10
00:00:41,040 --> 00:00:47,430
And as Jadot input, I'll give it key in.

11
00:00:52,910 --> 00:01:01,320
Repeat this a couple of times and let's change these four or five.

12
00:01:03,900 --> 00:01:14,400
And now we have created earlier, so let's create our window and then we will use event and values will

13
00:01:14,400 --> 00:01:18,570
equal to win the DOT, right.

14
00:01:19,080 --> 00:01:19,680
And then.

15
00:01:21,340 --> 00:01:32,350
After we read it, we will use window that close our window display here and it have different tasks

16
00:01:32,830 --> 00:01:33,430
and.

17
00:01:34,290 --> 00:01:36,360
Inputs and we have forgot.

18
00:01:41,020 --> 00:01:43,240
OK, and cancel button shouldn't.

19
00:01:44,920 --> 00:01:46,720
Give the of.

20
00:01:47,900 --> 00:01:49,150
Unbuttons to.

21
00:01:52,950 --> 00:01:54,180
Or cancel.

22
00:01:55,810 --> 00:02:00,100
Whatever he wants, so if we.

23
00:02:01,420 --> 00:02:03,610
And there's some values in news.

24
00:02:05,370 --> 00:02:08,520
And we think it will be.

25
00:02:09,650 --> 00:02:18,570
Recorded what we have in print, the event and values, and now this is the.

26
00:02:21,530 --> 00:02:23,270
We have seen this previously.

27
00:02:24,080 --> 00:02:33,170
And obviously, there are multiple ways to create value that will make it much easier.

28
00:02:33,260 --> 00:02:33,710
So.

29
00:02:34,760 --> 00:02:47,480
I will create another layout, this will be an empty nest then for I in range of one to seven because

30
00:02:47,480 --> 00:02:49,310
we are having six rows.

31
00:02:50,290 --> 00:02:56,830
I will use pay out plus will equal to one or two.

32
00:02:57,650 --> 00:03:04,870
Of these, I will convert those to formatters string with the Value VI.

33
00:03:05,700 --> 00:03:08,640
And also this.

34
00:03:09,650 --> 00:03:13,340
And when they do finish, it's at our.

35
00:03:14,460 --> 00:03:15,140
OK.

36
00:03:15,270 --> 00:03:17,460
And cancel button.

37
00:03:18,570 --> 00:03:27,360
So we will Salyut plus equals and will create a list of list.

38
00:03:27,540 --> 00:03:29,120
Don't ever forget this.

39
00:03:29,430 --> 00:03:34,910
If I did not do this, it will create an error message.

40
00:03:35,550 --> 00:03:38,340
OK, so because.

41
00:03:39,860 --> 00:03:47,960
I am adding a list of less to the layout now let's copy this.

42
00:03:49,890 --> 00:03:52,040
Cells always use.

43
00:03:53,240 --> 00:03:54,380
Let's move this.

44
00:03:55,480 --> 00:03:56,680
What a mere.

45
00:04:02,930 --> 00:04:09,080
And we have created the same layout with a full OK, great.

46
00:04:09,860 --> 00:04:16,700
And of course, we can do the same thing using Alice the Channer, so.

47
00:04:17,620 --> 00:04:28,690
Let's try this, I'll just copy these cells in this and I'll remove this, I will create layout which

48
00:04:28,690 --> 00:04:32,860
will equal to Fushi Range.

49
00:04:34,330 --> 00:04:35,840
Of one seven.

50
00:04:36,220 --> 00:04:40,660
OK, let's try this and we have created.

51
00:04:42,300 --> 00:04:54,120
The same layout with a list comprehension, so this can allow us to save time and create a very complex

52
00:04:54,360 --> 00:04:58,140
layout with a few lines of code.

53
00:04:58,860 --> 00:05:01,810
Now let's create another layer.

54
00:05:02,130 --> 00:05:02,670
But.

55
00:05:03,560 --> 00:05:08,060
In a different way, I will create a function plate.

56
00:05:08,850 --> 00:05:12,180
Role, which will be index.

57
00:05:13,190 --> 00:05:13,910
And values.

58
00:05:16,590 --> 00:05:18,480
A2 is still not.

59
00:05:21,040 --> 00:05:25,830
Item of Fermat string open ended.

60
00:05:27,600 --> 00:05:29,550
Index, I will give it.

61
00:05:30,460 --> 00:05:31,600
Size.

62
00:05:33,130 --> 00:05:35,560
Equals eight characters.

63
00:05:36,670 --> 00:05:38,560
Then let's add.

64
00:05:39,970 --> 00:05:44,560
Campbell, the commonwealth will be.

65
00:05:45,820 --> 00:05:46,870
The ladies in here.

66
00:05:48,240 --> 00:05:52,140
It will also have a default value of the first Elliman and.

67
00:05:55,500 --> 00:05:59,040
I also gave a size of.

68
00:06:00,190 --> 00:06:05,230
Three and one, and let's also add.

69
00:06:06,120 --> 00:06:06,960
An impact.

70
00:06:07,800 --> 00:06:11,400
Which will have a key or format this thing.

71
00:06:12,920 --> 00:06:20,960
In of Digex, OK, now let's create.

72
00:06:21,940 --> 00:06:34,570
Values which were equal to a list of A, B, C, D, E, F, and we will create a layout, Dalia will

73
00:06:35,830 --> 00:06:42,220
list comprehension, create the role of AI and values.

74
00:06:43,100 --> 00:06:48,470
For I in range of 11.

75
00:06:50,950 --> 00:07:04,180
Again, as we have seen, we will add our OK and cancel bottoms and we have created our layout, let's

76
00:07:04,180 --> 00:07:04,720
cut.

77
00:07:05,610 --> 00:07:07,080
These two.

78
00:07:08,010 --> 00:07:08,500
Cells.

79
00:07:09,030 --> 00:07:14,910
Now, let's exclude these cells and we have created our layout.

80
00:07:17,940 --> 00:07:24,310
Is very cool and we have created this in a couple of lines.

81
00:07:24,660 --> 00:07:28,800
Now let me show you a couple of things.

82
00:07:29,550 --> 00:07:34,950
As I told you that the layout should be a list of list.

83
00:07:35,310 --> 00:07:44,460
If the layout is not a list of list, it will create an error message just like this one error creating

84
00:07:44,460 --> 00:07:48,210
window layout and instead of a list.

85
00:07:49,430 --> 00:07:52,460
That I found was class of.

86
00:07:53,260 --> 00:08:00,310
Something, this means that we are passing a list, not a list of lists.

87
00:08:00,760 --> 00:08:03,490
OK, this is very important.

88
00:08:03,940 --> 00:08:04,750
OK, so.

89
00:08:08,050 --> 00:08:14,690
And remarking that this is better when they.

90
00:08:19,200 --> 00:08:23,400
Is not a list of lists.

91
00:08:26,290 --> 00:08:30,520
Now, let's move on to something very important.

92
00:08:31,470 --> 00:08:40,710
We have seen in the last lecture how we can update an element in the wind, but let's refresh it.

93
00:08:41,310 --> 00:08:42,060
I just.

94
00:08:43,310 --> 00:08:46,910
Create a layout, which will be.

95
00:08:50,100 --> 00:08:50,910
Leaves.

96
00:08:52,130 --> 00:09:03,500
And there's something and then I'll add an important box and I'll give it a key equals.

97
00:09:04,640 --> 00:09:08,330
In then we will create another.

98
00:09:11,370 --> 00:09:14,550
I'll give a key equals.

99
00:09:16,920 --> 00:09:18,690
And I'll give it a size.

100
00:09:19,610 --> 00:09:28,610
Of print and one, because the default size is one character and finally our.

101
00:09:29,540 --> 00:09:31,880
By the way, there are multiple.

102
00:09:32,940 --> 00:09:44,940
Buttons, for example, we can we have subnet and these are just button names, so instead of OK and

103
00:09:44,940 --> 00:09:48,630
cancel, I'll use subnet and count.

104
00:09:49,720 --> 00:09:54,220
OK, now we have great layout, I'll copy these.

105
00:09:55,220 --> 00:10:03,380
Two, I will create wild two if event in.

106
00:10:04,470 --> 00:10:05,070
Ganzel.

107
00:10:11,340 --> 00:10:22,620
Is GW in close, then I'll break out of the blue elusive event equals submit.

108
00:10:25,580 --> 00:10:27,650
Window of.

109
00:10:30,950 --> 00:10:34,850
The date values of.

110
00:10:39,860 --> 00:10:48,710
We will close the window and we will PRAnd event and raise.

111
00:10:50,250 --> 00:10:56,750
Hey, now, let's ask you this, when I we have an error message.

112
00:10:58,530 --> 00:11:08,580
Sometimes when you have an error, your program will not respond, so I will close it and since are

113
00:11:08,580 --> 00:11:12,600
using trumpeter's, the kernel will stop.

114
00:11:14,910 --> 00:11:18,630
We will have to execute this again.

115
00:11:20,230 --> 00:11:25,640
Because the colonel is died and thus should be prent.

116
00:11:25,990 --> 00:11:27,810
Now let's do this again.

117
00:11:28,900 --> 00:11:35,890
OK, now we have a window, if we type something and press submit that updated this, we have seen this

118
00:11:35,890 --> 00:11:36,440
before.

119
00:11:36,550 --> 00:11:39,310
Nothing is new here, but.

120
00:11:40,280 --> 00:11:42,050
We also have.

121
00:11:42,970 --> 00:11:48,310
Seeing how we can create an event directly without.

122
00:11:49,720 --> 00:11:52,840
Pressing a button by using.

123
00:11:57,450 --> 00:11:58,860
Equals to.

124
00:12:01,010 --> 00:12:04,640
And we can modify this by using its name.

125
00:12:06,700 --> 00:12:14,440
So now, whenever I type something in years, it will update that.

126
00:12:17,590 --> 00:12:20,500
We have seen this before now.
