WEBVTT 00:00.240 --> 00:03.420 In this dawdles we will learn about the messagebox option. 00:03.420 --> 00:08.360 What is the use of message box option in Python programming and. 00:08.450 --> 00:11.020 We will learn about shapes and graphics. 00:11.260 --> 00:13.470 So let's create a new python file. 00:13.920 --> 00:23.470 So inside this python file I'm going to give a name as messagebox and let's begin the chord. 00:23.500 --> 00:27.180 Let's import the package thing. 00:28.320 --> 00:32.130 Same for Star. 00:32.400 --> 00:35.510 So we have created a package. 00:35.610 --> 00:45.490 We have imported and we will import another package of thing that is important. 00:45.750 --> 00:48.930 And our message box. 00:49.020 --> 00:58.080 So we have imported two packages from imports and importing third dark messagebox. 00:58.140 --> 00:59.620 We will go on the route. 00:59.670 --> 01:02.790 We will create an element of Roarke frank here. 01:02.810 --> 01:05.660 We will call dollface Take care. 01:06.130 --> 01:22.620 Now we will use thing option door message box door showing full and after movie use window title option 01:23.310 --> 01:24.710 and window title. 01:24.750 --> 01:28.680 Along with that we display a message name as 01:31.490 --> 01:33.490 monkeys Galili 01:36.140 --> 01:40.000 Dode 300 years. 01:40.050 --> 01:41.990 Is it true. 01:42.110 --> 01:44.670 Don't let's see. 01:45.090 --> 01:49.100 We have created a message box not showing permission. 01:49.500 --> 02:00.940 After that I I'm going to create an alignment name as is Ansal and here I'm going to use thing. 02:00.980 --> 02:08.210 D'arte messagebox cannot ask questions inside the ask question. 02:08.240 --> 02:12.170 I will have a list of questions. 02:12.510 --> 02:20.360 Let's say I have wish one and they push and Button consists stall. 02:20.490 --> 02:25.330 Do you like silly faces. 02:25.600 --> 02:27.600 I want have optional. 02:27.900 --> 02:29.600 Do you like silly faces. 02:29.610 --> 02:40.560 I'm going to ask this question so we will see here the implementation of if statement so how we implement 02:40.560 --> 02:46.580 the if statement we just hop to use the if statement after the if statement. 02:47.910 --> 02:54.750 I will use an option and I've only used truly quote option. 02:55.170 --> 02:59.330 And here I will just pass. 02:59.360 --> 03:05.640 If yes then we will bring the message here. 03:06.970 --> 03:08.640 Mike we will bring. 03:09.090 --> 03:09.660 You are 03:12.000 --> 03:15.190 absolutely right. 03:16.110 --> 03:19.780 So we are going to display our messages. 03:19.800 --> 03:29.960 You are absolutely right now my way we do is we been called the rule. 03:30.100 --> 03:32.210 Not main loop option. 03:32.250 --> 03:34.640 We are going to call. 03:34.820 --> 03:48.370 Now let's have an example go Nejad configuration gave here the name as Massad valks let's select the 03:48.390 --> 03:49.320 by confine 03:53.930 --> 04:02.860 then we will just link up biotin file and we will just click on this as you see there. 04:02.930 --> 04:07.880 We have gone gotte of indwell been named as well in the title. 04:08.120 --> 04:16.490 And we got the message as Mangus can live up to 300 yards and whenever we are going to press on the 04:16.520 --> 04:20.140 OK button we have ignored the question one. 04:20.210 --> 04:26.340 Do you like silly phrases when I'm going to click on the yes option. 04:26.360 --> 04:28.240 It really does play me messages. 04:28.250 --> 04:29.940 You are absolutely right. 04:30.260 --> 04:34.170 So we have created this application. 04:34.310 --> 04:41.460 So in this we have learned about the use of messagebox. 04:41.620 --> 04:48.880 Now what if I want to create another application in that particular application. 04:49.760 --> 04:54.760 I want to see the usage all graphics 04:57.160 --> 04:57.970 graphics 05:00.980 --> 05:03.370 and shapes. 05:03.410 --> 05:08.650 We will create Sarton graphics and shapes. 05:08.700 --> 05:21.370 So let's begin the ward for our For that let's create our day Leeming with the name as canvas were built 05:21.840 --> 05:32.850 in for can canvas option and in that 10 most option I built posit that Leeming we will have the option. 05:33.350 --> 05:34.400 Let's see. 05:34.520 --> 05:38.260 I want to use the veto option as 200. 05:38.480 --> 05:47.240 Similarly for height option I really use Haranguer value now. 05:47.340 --> 05:59.960 But I will do is I will use grandmother's dog FAQ option now and was knockback option is being used 06:00.220 --> 06:01.090 similarly. 06:01.100 --> 06:13.410 I've been to read a line named as blackline his quotes to Ken will start to create line create lines 06:13.430 --> 06:20.110 we will use that functionality of clear line and here I will pass the argument for the line. 06:20.450 --> 06:24.640 Let's give the value zero zero. 06:25.280 --> 06:28.900 Two hundred and fifty. 06:30.230 --> 06:32.650 Now we have created a black line. 06:32.690 --> 06:39.830 Similarly let's create another line named as red line. 06:39.890 --> 06:48.620 Similarly tie values can was dog create line we will pass arguments zero Colma. 06:48.680 --> 06:55.370 Ponder Komarr let's say 200 for t. 06:55.610 --> 07:01.730 I really use the fill option here trailing close to it. 07:02.240 --> 07:07.460 So we have created two lines blackline and Peg line. 07:07.580 --> 07:12.420 Similarly where I want to use the extra functionality. 07:12.870 --> 07:15.730 Same as the Green Box. 07:15.740 --> 07:17.950 I want to create the box here. 07:19.420 --> 07:21.430 Can was dog. 07:22.140 --> 07:23.040 Let's see. 07:23.040 --> 07:26.590 We are having how many other options. 07:26.610 --> 07:33.130 See we are having create rectangle for create the tangle. 07:33.360 --> 07:43.790 Let's posit argument says 25 25 let's give value over 130 or 60. 07:44.320 --> 07:57.040 And the option I want to use and here let's say I want to use the green option. 07:57.380 --> 08:01.420 I want to use the green option here. 08:02.450 --> 08:07.140 Let's use that to dolmen Rudolph men. 08:07.550 --> 08:14.300 Now let's commend the above or because we will get above board as well. 08:14.300 --> 08:21.050 So something Taggert message box still absolutely right brain message. 08:21.230 --> 08:26.180 We are going to kumain this. 08:26.200 --> 08:38.790 Let's close all our window and run the project see we have created two lines black line that length 08:39.340 --> 08:45.220 and we have created our tangle on that rectangle. 08:45.220 --> 08:47.620 We have used the feared option. 08:47.620 --> 08:52.000 We have used the green color for that rectangle. 08:52.180 --> 08:56.820 So we have created two lines and a rectangle. 08:57.010 --> 09:07.960 So with the help of these we have used the implementation of graphics shapes and we have done the implementation 09:07.960 --> 09:16.570 awls message box with the help of that we have use the quotation option inside the Russian option. 09:16.790 --> 09:19.060 We have used the implementation. 09:19.090 --> 09:26.530 If Stakman What is the use of if statement that is if the condition is true then we are going to print 09:26.530 --> 09:27.600 the message. 09:27.610 --> 09:31.390 So are you able to see that in this if statement. 09:31.420 --> 09:40.690 We have not used opening and closing braces so we have seen that in the case of Python We don't need 09:40.720 --> 09:48.130 to use the opening and closing braces so we simply just type the if statement and we will fight that 09:48.130 --> 09:49.250 condition. 09:49.480 --> 09:57.430 Octodad condition we need to write the colon and we have to use the print option Optum that great option. 09:57.430 --> 10:02.710 We want to bring the message as you are absolutely right. 10:02.710 --> 10:08.950 So we have done that with the help of practical implementation. 10:09.070 --> 10:12.190 So we have implemented the code. 10:12.340 --> 10:25.260 Now what if I want to delete the above Lange's or even use the dark delete function inside then delete 10:25.320 --> 10:31.090 function Ivon or delete the blocked link. 10:32.230 --> 10:36.260 Let's save the changes and run the project. 10:36.550 --> 10:41.360 See the black line is no more windows. 10:41.770 --> 10:48.160 And what if I want to use Can must not delete all. 10:48.460 --> 10:50.540 All that things will be deleted or not. 10:50.920 --> 10:58.030 Let's see pets closed or put Grindl which is already running an ad on the window. 10:58.030 --> 11:00.970 See nothing is displaying here. 11:01.040 --> 11:08.910 So what Dave I coming here they can was dark delete and run the application. 11:08.930 --> 11:14.950 We guard the hour where does red lane and the rectangle option not right. 11:14.990 --> 11:27.280 Dave I want to delete canvas tardily drag line and run the application see black as well as the red 11:27.280 --> 11:37.480 line is normal redoes and we have quarte only a single rectangle name as green we have now what do I 11:37.480 --> 11:38.600 want to. 11:39.010 --> 11:43.240 I don't want to use Scan or delete black line and red line. 11:43.520 --> 11:51.910 I've wanted to use MS-DOS Zelig all because we have to write the last lines of code in Python so we 11:51.940 --> 11:54.600 are going to use that thing. 11:54.670 --> 11:58.190 We are going to use canvas dotted delete option. 11:58.430 --> 12:01.700 All we really get up am saving. 12:02.140 --> 12:05.350 So we have implemented the concept with the help of this.