1 00:00:05,700 --> 00:00:06,300 Here everyone. 2 00:00:06,610 --> 00:00:08,940 So in the last video we are done with the canvas. 3 00:00:09,030 --> 00:00:11,820 And in this video we are going to do check button and radio button. 4 00:00:12,540 --> 00:00:18,300 So most of you have seen these kind of buttons where you need to click on that one and that particular 5 00:00:18,300 --> 00:00:19,590 value that check. 6 00:00:20,130 --> 00:00:22,140 This is known as a check button. 7 00:00:22,140 --> 00:00:29,190 Most of the time you will click way by preparing your applications and the radio button is similar to 8 00:00:29,190 --> 00:00:30,240 that one. 9 00:00:30,350 --> 00:00:30,980 It is 10 00:00:34,160 --> 00:00:35,320 maybe I have no need. 11 00:00:35,330 --> 00:00:35,990 There it is. 12 00:00:36,380 --> 00:00:39,140 So this is a radio button in radio button. 13 00:00:39,140 --> 00:00:44,300 This is similar to the check button but you have multiple options and in check within you can select 14 00:00:44,420 --> 00:00:49,010 as many number as you want but in radio button you can select only one at a time. 15 00:00:49,970 --> 00:00:52,250 So that's the check with an Ontario button. 16 00:00:52,700 --> 00:00:55,550 So that begin to learn that how we can create them. 17 00:00:56,510 --> 00:01:02,360 So first of all we will begin with creating a check button creating a check button is very easy say 18 00:01:02,410 --> 00:01:04,580 ACB is a check button. 19 00:01:04,700 --> 00:01:09,910 You can simply create this one by adding the widget name check button. 20 00:01:09,980 --> 00:01:13,420 And in that one you need to pass two variables. 21 00:01:13,430 --> 00:01:19,640 First one is the common one that is where it is like this is going to be number window. 22 00:01:19,640 --> 00:01:25,240 After that the text you want to display on that and say music. 23 00:01:25,850 --> 00:01:27,200 And after that one. 24 00:01:27,290 --> 00:01:31,800 And let me create two of this kind but just copy that one. 25 00:01:31,950 --> 00:01:38,900 So after that one you require some own and all values like how the program can sense whether they put 26 00:01:38,900 --> 00:01:39,800 on his ticket or not. 27 00:01:40,310 --> 00:01:47,090 So Wendy Button is did you need to specify that the product is on on and you need to specify a value 28 00:01:47,090 --> 00:01:54,710 for that for like 1 4 1 and 0 4 of these are the basic standard values we General Day for example and 29 00:01:54,710 --> 00:01:59,620 you can provide any value to that one so all value. 30 00:02:00,110 --> 00:02:04,070 You can also provide all value one and own value 0. 31 00:02:04,220 --> 00:02:14,870 That is the inverse of that one but we will do the simple one that is all value zero and own value one 32 00:02:16,280 --> 00:02:27,840 after that height and weight to Dedmon say height is equal to five and we're equal to in after that 33 00:02:27,840 --> 00:02:28,160 one. 34 00:02:28,170 --> 00:02:29,680 Here this one is created. 35 00:02:29,700 --> 00:02:32,770 Now you do just need to do CB Dot. 36 00:02:32,790 --> 00:02:33,210 Back 37 00:02:35,910 --> 00:02:41,300 say this one and there's the terminal and I've done this one. 38 00:02:41,330 --> 00:02:43,220 I will get this button. 39 00:02:43,350 --> 00:02:48,300 Hey you can notice this one when I click this one and get it here. 40 00:02:48,380 --> 00:02:54,380 You can add many number of buttons here as we have seen in the example the 41 00:02:57,920 --> 00:03:01,160 there's only one in that one name. 42 00:03:01,160 --> 00:03:11,780 This one do this one to and say next is equal to when you rested things we'll be seeing a food on that 43 00:03:11,780 --> 00:03:12,470 one again here 44 00:03:15,190 --> 00:03:16,490 David get it data. 45 00:03:16,710 --> 00:03:18,550 Now why wouldn't I have it added here. 46 00:03:18,850 --> 00:03:23,190 I need to show you something like when you click these buttons. 47 00:03:23,190 --> 00:03:30,790 Hey I have this one and this one then this value either 0 or 1 need to be stored in a wedding but otherwise 48 00:03:30,960 --> 00:03:32,670 how will program take that value. 49 00:03:33,550 --> 00:03:38,910 So the previous ones are just only the buttons and the canvas in which we just create the figure on 50 00:03:38,910 --> 00:03:39,520 defender. 51 00:03:39,690 --> 00:03:41,470 But here we are taking an input. 52 00:03:41,520 --> 00:03:48,200 The program will work on based on this input lag when the music is on it will show music when the video 53 00:03:48,200 --> 00:03:50,040 is on it this will show videos. 54 00:03:50,040 --> 00:03:58,410 But this is value so in the check button and radio buttons or we consistently did things in which we 55 00:03:58,410 --> 00:04:01,650 are putting an input end of a program depends on that input. 56 00:04:02,250 --> 00:04:04,660 So in that case is we required of red here. 57 00:04:05,490 --> 00:04:14,550 So we create variable sets even for button fun and see to before but until in this case the value of 58 00:04:14,550 --> 00:04:16,110 0 and 1. 59 00:04:16,800 --> 00:04:23,300 So define these variables as input variable. 60 00:04:23,350 --> 00:04:24,560 There we have this one. 61 00:04:24,570 --> 00:04:36,770 Also this one is the into variable and now add another parameter here that is very able and passed the 62 00:04:36,770 --> 00:04:45,650 value of that particular variable like I want to store my CB value in C1 and the same in this one. 63 00:04:46,660 --> 00:04:49,010 Just seat so injured. 64 00:04:49,010 --> 00:04:54,730 Button for every single button you need to have a different variable a device the values will be mixed 65 00:04:54,730 --> 00:04:54,930 up. 66 00:04:57,420 --> 00:04:59,340 So this is all about the check button. 67 00:04:59,400 --> 00:05:00,940 That's how you can create a check button. 68 00:05:00,960 --> 00:05:07,920 How you can put the 0 and 1 values and how you can provide that value to your variable. 69 00:05:08,040 --> 00:05:13,510 So the dual program can create that value after that one. 70 00:05:13,740 --> 00:05:20,340 We have did radio button so this one is also very easy and just like this one you need to do same things 71 00:05:20,340 --> 00:05:21,240 like first. 72 00:05:21,270 --> 00:05:23,930 I'm creating a variable so bad here. 73 00:05:24,000 --> 00:05:31,320 Only one variable because only one value get ticked at a time so variable and provide this one of value 74 00:05:32,940 --> 00:05:36,030 in red because this one is also going to be an integer. 75 00:05:36,930 --> 00:05:38,360 And then the same thing. 76 00:05:38,910 --> 00:05:51,560 So say our piece of a radio button at Arthur and that one just radio button knowing that one as usual 77 00:05:51,610 --> 00:05:53,560 provide first division and the text. 78 00:05:53,620 --> 00:06:05,640 So here Vin and text say option but they have this one after that provided variable because the value 79 00:06:05,640 --> 00:06:13,810 is also needed to be stored of a variable is that after that one has only a one parameter that will 80 00:06:13,810 --> 00:06:15,990 separate the radio buttons. 81 00:06:16,120 --> 00:06:16,580 That is the. 82 00:06:16,620 --> 00:06:17,610 Well you better. 83 00:06:18,010 --> 00:06:21,060 You need to provide a well you said this one is option one. 84 00:06:21,100 --> 00:06:27,480 So one after that one arm and or back to show this one. 85 00:06:28,000 --> 00:06:30,850 And if you done this one right now 86 00:06:33,600 --> 00:06:35,660 we have this one. 87 00:06:35,910 --> 00:06:36,390 Here we go. 88 00:06:36,420 --> 00:06:42,180 This option of picking the button but right now we have only one option. 89 00:06:42,180 --> 00:06:47,640 So let us add some few more button so that you can see that change. 90 00:06:48,380 --> 00:07:00,110 We had this one and change these into our two are two three and three option to Option Three variable 91 00:07:00,110 --> 00:07:04,610 will remain same but not to value because the values defining them. 92 00:07:05,360 --> 00:07:06,600 And David go with that. 93 00:07:07,070 --> 00:07:12,710 Now if you run this one shift don't go. 94 00:07:12,950 --> 00:07:15,660 So here we have the options the check returns. 95 00:07:15,680 --> 00:07:21,770 You can check all of them at once if you want to but in radio button if you click one you can select 96 00:07:21,860 --> 00:07:22,960 other two. 97 00:07:23,030 --> 00:07:26,850 So as you can see of an isolated this one this disappear. 98 00:07:26,870 --> 00:07:28,970 Now option 3 one disappear. 99 00:07:30,490 --> 00:07:32,170 So this is a radio button. 100 00:07:32,350 --> 00:07:33,170 One more thing. 101 00:07:33,400 --> 00:07:41,050 If you do the value one or you can see all the values seen then in that case this can also be useful 102 00:07:41,050 --> 00:07:47,280 when you are doing something in which only one command is required but there are no buttons in that 103 00:07:47,280 --> 00:07:50,780 case if you select one value all the values will be selected at a time. 104 00:07:51,810 --> 00:07:54,830 And the joke button is also same. 105 00:07:54,840 --> 00:07:57,730 So this is a radio button and check button. 106 00:07:57,780 --> 00:07:59,670 So thanks for watching. 107 00:07:59,730 --> 00:08:04,440 This is all about this mode you can learn about this in the notes you will get all the options available 108 00:08:04,440 --> 00:08:05,620 with Dedmon. 109 00:08:05,820 --> 00:08:07,650 So things are watching soon the next video.