1
00:00:05,170 --> 00:00:11,770
Welcome to this lecture of faith and joy with my Sempill Joy.

2
00:00:12,820 --> 00:00:25,270
I said Mildewy is a python package that allows us to create desktop applications quickly and easily.

3
00:00:26,210 --> 00:00:31,460
By Sempill, Joy is divided into three main components.

4
00:00:32,720 --> 00:00:33,290
Winders.

5
00:00:34,390 --> 00:00:36,340
Elements and Baba.

6
00:00:37,550 --> 00:00:40,670
Window is the main window that have.

7
00:00:41,590 --> 00:00:44,650
All the components laid out on them.

8
00:00:45,700 --> 00:00:48,880
Elements are the component that.

9
00:00:49,880 --> 00:00:59,750
Is used to construct the GeoEye interface and finally, Bogucz are simple windows that have specific

10
00:00:59,750 --> 00:01:01,400
element under.

11
00:01:02,210 --> 00:01:06,860
As we will see, elements cannot be used on their own.

12
00:01:07,830 --> 00:01:16,320
They have to reside in our windows and element of properties that defines the behavior of the window,

13
00:01:16,650 --> 00:01:25,760
and we will go through all the elements and their properties as we progress through this course.

14
00:01:28,090 --> 00:01:36,720
Enough talking, let's first start with the bombs, which are windows with their component that serve

15
00:01:36,850 --> 00:01:47,470
some purpose above it, just like a print or impact statement in Python, they display a message to

16
00:01:47,470 --> 00:01:50,780
the user or ask the user for input.

17
00:01:51,220 --> 00:02:00,970
OK, before we start, let's first verify that I assembled my package install to do this and drop it

18
00:02:00,970 --> 00:02:02,590
OLAP we will use.

19
00:02:03,610 --> 00:02:10,320
Exclamation mark and his stool by simple joy.

20
00:02:11,140 --> 00:02:12,100
We are using.

21
00:02:13,350 --> 00:02:23,400
Wendy's throughout the schools, and now let's import by Sempill GeoEye as S.G..

22
00:02:24,310 --> 00:02:25,570
This is a convention.

23
00:02:26,060 --> 00:02:31,240
OK, now let's try to display above the wind.

24
00:02:32,110 --> 00:02:33,790
Let's first start with.

25
00:02:34,600 --> 00:02:46,120
Now, but whether to display a message for their users, you can just buy as you move up and then type

26
00:02:46,120 --> 00:02:48,070
in the message that you want to display.

27
00:02:48,940 --> 00:02:56,320
Let's play a role in how this had played a window inside the window.

28
00:02:56,350 --> 00:03:04,900
There is a label or Xbox and about to close the Bobba you can.

29
00:03:05,870 --> 00:03:08,000
Verizon, OK, or.

30
00:03:08,780 --> 00:03:16,290
You can close with this window, close button when you over on it, it will display Kluth.

31
00:03:16,670 --> 00:03:26,450
This is an icon for the window and this is the maximize window button if we need the maximization.

32
00:03:26,870 --> 00:03:29,800
But now we have displayed our first bubble.

33
00:03:29,960 --> 00:03:31,990
I'll just press on, OK?

34
00:03:32,210 --> 00:03:40,300
And as you can see, when the windows closed, it displays which button I have pressed.

35
00:03:40,790 --> 00:03:46,010
This can be used in displaying a message for David.

36
00:03:46,430 --> 00:03:51,220
OK, now let's continue exploring the box.

37
00:03:51,800 --> 00:03:58,580
I'll just create a for loop for I in range of 10000, for example.

38
00:03:59,030 --> 00:04:02,270
I'll display Bobbo animated.

39
00:04:02,510 --> 00:04:10,700
If you press Scheft tab inside the function, it will display the function parameters will explore the

40
00:04:10,700 --> 00:04:14,380
important parameters as we go through this course.

41
00:04:15,100 --> 00:04:20,090
OK, the animated expect an image source.

42
00:04:20,450 --> 00:04:23,660
I will use the default.

43
00:04:23,960 --> 00:04:28,070
If I press that it will autocomplete what I am typing.

44
00:04:28,070 --> 00:04:33,380
But since there are lots of options, it's displaying them in a menu.

45
00:04:33,680 --> 00:04:43,390
I will choose default base64, including Jeff and I will not display a title bar background color.

46
00:04:43,400 --> 00:04:45,230
I'll choose why.

47
00:04:45,710 --> 00:04:52,340
And for this animated I have an option time between frames.

48
00:04:52,460 --> 00:04:56,210
I will choose it as hundred milliseconds.

49
00:04:56,630 --> 00:05:01,820
Now this will display an animated gif image.

50
00:05:02,180 --> 00:05:08,540
When the loop finish I will need to pass in none to close the window.

51
00:05:08,720 --> 00:05:10,820
OK, now let's run this.

52
00:05:11,210 --> 00:05:17,300
This had displayed above a plan to let's increase this loop index.

53
00:05:17,750 --> 00:05:26,500
This will display this animated gif and when the loop finish it will close the window.

54
00:05:26,950 --> 00:05:31,540
OK, now let's explore some more bubbles.

55
00:05:31,970 --> 00:05:44,120
There is Bob and knowing which will display a message we can type as the robot and knowing this will

56
00:05:44,120 --> 00:05:51,530
display above without a title bar, there is no close button you would have to click on.

57
00:05:51,920 --> 00:05:54,310
OK, to close the above.

58
00:05:54,560 --> 00:05:59,840
We can also display above for a certain amount of time.

59
00:06:00,230 --> 00:06:02,630
There is bouba or to close.

60
00:06:02,930 --> 00:06:09,860
It will display a message and it will close after five seconds.

61
00:06:10,100 --> 00:06:12,300
Three full timeout is five seconds.

62
00:06:12,500 --> 00:06:22,820
We can also display Ubobo with a cancel button bobba cancel now what is displayed with a cancel.

63
00:06:23,420 --> 00:06:33,440
But we can also display Bobba error, which will display a red button with error as the button text.

64
00:06:33,860 --> 00:06:40,760
There is also Lova with no borders as the one we have seen with annoying.

65
00:06:41,000 --> 00:06:43,490
If you click, you can move it around.

66
00:06:43,820 --> 00:06:47,510
There is also bouba with no button.

67
00:06:47,750 --> 00:06:54,740
This will only display a message and to close it you'll have to click on the close button for the window.

68
00:06:55,010 --> 00:07:04,160
Those are of the packet have created different types of bobber that can suit your needs so there is

69
00:07:05,310 --> 00:07:06,440
no frame.

70
00:07:06,710 --> 00:07:09,260
It's similar to the one with no borders.

71
00:07:09,500 --> 00:07:15,590
There is also no title bar again, similar to the other one.

72
00:07:15,800 --> 00:07:20,120
OK, now let's concentrate on the important one.

73
00:07:20,330 --> 00:07:23,810
We can have WABAC of K and cancel.

74
00:07:24,020 --> 00:07:26,960
This will play OK and cancel button.

75
00:07:27,110 --> 00:07:32,330
When you click the button it will return whatever tab on the button.

76
00:07:32,330 --> 00:07:35,210
So if we click on cancel it will return.

77
00:07:35,210 --> 00:07:38,660
Cancel if you click on ok it will return.

78
00:07:38,960 --> 00:07:43,750
OK, but if we click on the close button it will not return anywhere.

79
00:07:43,910 --> 00:07:47,000
Again there is also another scroll.

80
00:07:47,240 --> 00:07:51,650
This will display a message longer message like this.

81
00:07:51,920 --> 00:08:01,010
Of course you can have different usage for all of these, but I'm just showing all the available options

82
00:08:01,280 --> 00:08:02,990
for you to pick from.

83
00:08:03,200 --> 00:08:07,970
There is also Mahboub find it will take the message.

84
00:08:08,720 --> 00:08:10,610
Or two close duration.

85
00:08:10,850 --> 00:08:18,800
I'll give it three seconds after three seconds, it will close the wind and the last one that we will

86
00:08:19,070 --> 00:08:25,310
see is verbal yes no, which will display yes and no.

87
00:08:25,620 --> 00:08:32,570
OK, you can use any one of these to display a proper message for the users.

88
00:08:32,630 --> 00:08:36,090
This is similar to a print statement in part.

89
00:08:36,290 --> 00:08:39,850
Now, let's have a look about the bubbles.

90
00:08:40,280 --> 00:08:45,110
I can ask the user to provide me with a date.

91
00:08:45,440 --> 00:08:46,220
For example.

92
00:08:46,460 --> 00:08:49,190
This will display their calendars.

93
00:08:49,430 --> 00:08:52,990
I can choose any day then and click.

94
00:08:53,180 --> 00:08:54,580
It will return this day.

95
00:08:54,800 --> 00:09:02,440
OK, I can also ask the user for choosing a five leaves left five.

96
00:09:02,600 --> 00:09:08,570
The text I typed in here is displayed above the same box.

97
00:09:08,870 --> 00:09:17,540
When I click on this button, it will display an open file box so we can navigate to documents.

98
00:09:17,540 --> 00:09:26,390
For example, select a file and when we press OK, it will return the filename, including the path.

99
00:09:26,480 --> 00:09:30,670
If you click cancel, it will not return anything.

100
00:09:30,860 --> 00:09:35,100
We can also choose a folder instead of file.

101
00:09:35,120 --> 00:09:44,930
We can use mopper get folder, please select a folder and we can just choose any folder.

102
00:09:44,960 --> 00:09:47,210
For example, I'll choose this folder.

103
00:09:47,240 --> 00:09:50,090
It will return again the folder path.

104
00:09:50,210 --> 00:09:59,210
If we execute it again and we choose the same folder and we clicked cancel it will not return anything

105
00:09:59,210 --> 00:10:00,320
as we said.

106
00:10:00,560 --> 00:10:05,790
OK, we can also ask the user to type certain.

107
00:10:06,290 --> 00:10:16,310
For example, I can use Bobba, get text, please enter something, for example, and this can accept

108
00:10:16,310 --> 00:10:18,530
any type of string.

109
00:10:19,010 --> 00:10:26,930
If I pressed enter or click, return whatever I type in this input box.

110
00:10:27,090 --> 00:10:35,030
OK, now let's explore some of the parameters I'll use as the buffer.

111
00:10:35,340 --> 00:10:39,680
Let's for example, five different messages.

112
00:10:40,010 --> 00:10:41,540
Hello Will.

113
00:10:41,810 --> 00:10:45,380
Let's copy and paste it several times.

114
00:10:45,510 --> 00:10:50,720
It's exclude this as you can see, displayed all of them in the same window.

115
00:10:51,200 --> 00:10:53,170
I'll close this up.

116
00:10:53,630 --> 00:10:58,160
Let's also create another window.

117
00:10:58,520 --> 00:11:07,790
I will display the same message I know well and let's give it a title call customer, for example.

118
00:11:08,390 --> 00:11:16,520
I will create another buffer, I will give it a parameter button color, and I will pass in black and

119
00:11:16,520 --> 00:11:17,840
red, for example.

120
00:11:18,200 --> 00:11:21,350
And this will change the button appearance.

121
00:11:21,530 --> 00:11:25,730
Black is for the text and that is for the color of the.

122
00:11:25,730 --> 00:11:34,130
But I will just copy the cell and let's give it a parameter text color yellow for example.

123
00:11:34,490 --> 00:11:37,450
This I will close this pattern.

124
00:11:37,850 --> 00:11:43,010
I'll again copy and paste this and we can choose background color.

125
00:11:45,060 --> 00:11:51,600
OK, we can customize some of these parameters as we have seen.

126
00:11:51,990 --> 00:11:56,120
I can also give it an icon.

127
00:11:56,280 --> 00:11:58,120
Icon is an image file.

128
00:11:58,530 --> 00:12:04,470
I have an icon and an image, a GM engineer.

129
00:12:04,880 --> 00:12:05,780
We will use them.

130
00:12:06,180 --> 00:12:10,700
So I'll give it icon, construction icon.

131
00:12:11,490 --> 00:12:13,980
And this is the one.

132
00:12:14,400 --> 00:12:18,160
OK, we can also give it an image.

133
00:12:18,660 --> 00:12:23,410
OK, let's also give it a parameter in here called title.

134
00:12:24,000 --> 00:12:25,440
Let's display this again.

135
00:12:26,220 --> 00:12:33,980
You can see here it's the title and this is the message that we wanted to display.

136
00:12:34,650 --> 00:12:44,280
If I did not gave it a title specifically, the same message will be displayed inside the vulva and

137
00:12:44,280 --> 00:12:45,430
in the title area.

138
00:12:45,840 --> 00:12:50,880
OK, I can also give it a location, for example.

139
00:12:51,010 --> 00:13:02,430
Location equals this is a couple hundred, 100 or 200, 200, for example, and it have moved diagonally

140
00:13:02,700 --> 00:13:07,860
and I can also gave it a parameter grab anywhere.

141
00:13:08,160 --> 00:13:18,540
Either through this will allow me to drag it from if I click anywhere or I can give it folds and if

142
00:13:18,540 --> 00:13:21,760
I give it false, it's not trackable right now.

143
00:13:22,230 --> 00:13:29,160
OK, so this will conclude our exploration of the box.

144
00:13:29,670 --> 00:13:33,030
Thank you for watching and join me in the next lecture.
