WEBVTT 00:00.240 --> 00:04.820 In this order you're going to learn about the most click events. 00:05.190 --> 00:12.660 Now let's create an application or let's create a file of Python here in the pie and and. 00:12.990 --> 00:16.710 Let's give it name as play. 00:16.930 --> 00:23.230 Everything that came with day is because we are implementing the concept of click events. 00:23.400 --> 00:32.590 So we have created up by and find let's import the package from store import store. 00:33.380 --> 00:35.450 Now are all Dalmane. 00:35.640 --> 00:39.210 And here we've been called the hangup STK. 00:39.320 --> 00:46.440 We really create a function here that let's give the name all function is like. 00:46.710 --> 00:50.300 And here I'm going to pause the argument. 00:50.580 --> 00:58.690 So after the function declaration we have to give here the call an option. 00:58.800 --> 01:02.820 So we have to press the Portlands here for. 01:03.560 --> 01:09.120 It is the binding all the function bording with the function declaration. 01:09.120 --> 01:15.160 By using these colon now we can give the definition to that particular function. 01:15.480 --> 01:19.830 We will use the print option in that print option. 01:19.830 --> 01:24.000 I'm going to pause here the left. 01:24.380 --> 01:31.470 Phrased so I'm going to give here the praying message as leftside pressed. 01:31.470 --> 01:35.530 Now I'm going to create another function. 01:35.760 --> 01:37.790 No need to create another function. 01:37.830 --> 01:43.690 We've just implemented this concept with a single function named Jake. 01:43.980 --> 01:48.190 After that we will create and Allemagne named as frame. 01:48.450 --> 01:54.450 And here we've been puzzlements frame we've given here that option. 01:54.660 --> 01:58.860 We've redefined it till has 300. 01:59.250 --> 02:01.770 And similarly we need to 02:04.540 --> 02:15.520 create the height option height I've worn to mention here is to stay we use the option framed our bind 02:15.520 --> 02:16.290 option. 02:16.540 --> 02:26.000 And in the bind option Mark Ivy do I have a boss here Mike and does cordovan we are creating a button 02:26.430 --> 02:28.590 on does one for. 02:28.630 --> 02:34.870 And here I have BAH's the name of my function the name of my function is left. 02:35.320 --> 02:47.460 So now we will use the option framed or back and we will use daar main loop option. 02:49.540 --> 02:51.480 There or dark men. 02:51.750 --> 02:55.830 So let's run this example. 02:55.880 --> 03:05.670 So we need to do we call in that configuration we've been given here the name is take everything Hungwe 03:06.110 --> 03:07.750 global sleeked select here. 03:07.760 --> 03:10.890 The PI can find that it is like. 03:11.210 --> 03:19.260 And we've been Joh's on this file see we have run this file. 03:19.360 --> 03:23.130 We are getting an option we have created a simple window. 03:23.230 --> 03:32.700 Whenever I'm going to click on this window display a main message here is leftside placed on the console. 03:32.710 --> 03:35.530 We are getting a message as never pressed. 03:35.770 --> 03:38.610 Whenever I'm going to click on this window. 03:38.680 --> 03:41.840 It is giving me a message that let's say. 03:42.070 --> 03:49.380 Pressed on that Grindl we are getting the option whenever they want this particular thing. 03:49.570 --> 03:56.050 I'm getting a message on the console that is left side pressed the message which I have displayed in 03:56.050 --> 03:57.100 my example. 03:57.100 --> 03:59.190 So we are getting that. 03:59.350 --> 04:08.690 So in this example we have learned about the mouse click event so I'm just going to type here about 04:08.730 --> 04:23.540 the mouse click Avons because of these please stalls mouse click events So no these. 04:23.590 --> 04:26.470 Let's create another example. 04:26.470 --> 04:35.140 In that example I've worn thin blue in the concept of using classes how we create classes in Python 04:35.140 --> 04:36.160 programming. 04:36.520 --> 04:45.580 So I will just use the key word here as Talas and let's give it a name. 04:47.650 --> 04:51.210 Miklas call done. 04:51.390 --> 04:59.990 And in this I have to define here and us all any function. 05:00.340 --> 05:12.880 And here in the in a function I really use the option cell Colma Mosto we can create a frame in that 05:13.000 --> 05:13.540 frame. 05:13.570 --> 05:16.470 I'm going to boss your. 05:16.630 --> 05:20.190 I'm going to pause here. 05:20.250 --> 05:23.880 Same as Mosto. 05:24.280 --> 05:31.610 Now off to there I will use framed our FAQ option. 05:31.630 --> 05:34.550 I will use here now. 05:34.910 --> 05:39.250 I use Cells dart brain 05:42.100 --> 05:54.580 cells dart string them said doctoring but then I'm going to create them here. 05:56.510 --> 06:04.300 I'm going to here the frame text is quilts to print. 06:04.310 --> 06:10.300 Message and I want to use a Kemang here. 06:10.350 --> 06:19.700 C'mon is a good store sells dog print message said. 06:20.000 --> 06:20.400 Think. 06:20.420 --> 06:22.100 Message. 06:22.100 --> 06:25.000 I'm going to use now. 06:25.060 --> 06:35.740 We really do sell dark things like them not back cooption inside this back option. 06:35.780 --> 06:40.650 I warm side closed door left now. 06:40.680 --> 06:45.940 Our nation is very very important in this case. 06:46.320 --> 06:49.120 We are writing the code and bytes and programming. 06:49.240 --> 06:56.610 So whenever we are not going to use the proper identification in our program it will generate adders 06:56.610 --> 06:57.420 for you. 06:57.660 --> 07:01.140 So I think they should learn of your code is very very important. 07:01.350 --> 07:09.590 So I have created set and buttons the spring button but that option I have used it called an octave 07:09.630 --> 07:10.190 there. 07:10.410 --> 07:24.000 I've worn cell door quick but can show you I do like them quick and easy close to Buckton I warn frame 07:25.320 --> 07:29.990 and the text I want to use real quick. 07:30.330 --> 07:43.330 I want to use the correct option now that Kamandi is framed are quick framed or quick is the mind which 07:43.560 --> 07:46.340 I want to use now. 07:46.480 --> 07:55.620 What we will do what we do will self not quick adoption Greg it's dark. 07:56.520 --> 08:02.160 Back inside these I one side is it to. 08:02.840 --> 08:03.460 Now. 08:03.690 --> 08:04.650 We really do. 08:04.680 --> 08:10.740 We will create another function name as pring message. 08:10.920 --> 08:17.550 And here I've been Faas self as an argument. 08:17.550 --> 08:21.740 Now I'm going to print a message here. 08:22.110 --> 08:27.400 Well in that wall this is 08:30.000 --> 08:32.360 great about 08:34.990 --> 08:43.960 learning by ton why using thing though. 08:45.830 --> 08:49.460 So we are going to bring this message. 08:49.460 --> 08:52.030 So after that we've been using here 08:54.880 --> 09:00.180 through option door because through adoption we have already used. 09:00.250 --> 09:01.800 Let's see a ball. 09:01.910 --> 09:10.120 Do you think we have already used so we will not to use that option here but we will create we will 09:10.120 --> 09:17.190 create an element named as the equals to here we will pause the name of my class. 09:17.650 --> 09:20.110 The name is my class. 09:20.230 --> 09:29.790 So just year my class and here just posit that will calamine as a argument. 09:29.800 --> 09:38.950 So now let's combine the above code which we have created for mostly givings from the. 09:38.980 --> 09:47.500 Yes we are going to start coming and then fremd or fact we are commanding that particular. 09:47.520 --> 09:51.070 No let's get on the project. 09:51.070 --> 09:58.490 Just click on run label and so we are getting an added bezique word to my class. 09:59.020 --> 10:05.780 So that we are getting we are getting a type letter object takes no pattern with those. 10:05.800 --> 10:09.810 So let's see while we are getting this error. 10:10.270 --> 10:17.740 So we have created a class name as my class and that we have defined function name does in its function 10:17.800 --> 10:19.700 and the printed message function. 10:19.960 --> 10:25.160 So let's read on the code I've studied unning. 10:25.230 --> 10:26.600 We are going down. 10:26.610 --> 10:29.550 We have created two buttons. 10:29.700 --> 10:34.800 One is printed message on clicking the message button we are getting. 10:34.960 --> 10:36.980 Wow this is great to learn. 10:36.990 --> 10:41.850 By confusing thing we have created this message. 10:41.850 --> 10:48.010 And on clicking on the quick button Harvard application will be terminated. 10:48.080 --> 10:52.950 Sangli will get the message as process finished with exit code 0. 10:53.220 --> 11:02.250 So we have created this application in which we have seen the use of creating classes and we have used 11:02.250 --> 11:04.460 the option as mouse click events. 11:04.530 --> 11:07.170 So we have implemented these two concepts. 11:07.230 --> 11:09.270 In this particular example.