1 00:00:05,660 --> 00:00:10,400 If you want something now we have created the symbols and the window. 2 00:00:10,710 --> 00:00:15,020 In this way you will clearly buttons until now if you run our program. 3 00:00:15,320 --> 00:00:16,860 You will get an empty window here. 4 00:00:17,090 --> 00:00:20,810 There's not an indictment and we have added so much here. 5 00:00:20,810 --> 00:00:24,100 The reason for that one is because we have not created buttons yet. 6 00:00:24,980 --> 00:00:30,710 So first of all let me create some buttons and symbolic button dummy buttons. 7 00:00:30,710 --> 00:00:38,470 Now if you run the matchmaker would be why Ariel you will get something like this fun a window containing 8 00:00:39,280 --> 00:00:45,850 six columns four rows and each party will have a card that is actually a button. 9 00:00:45,850 --> 00:00:52,930 So if you want to access any of these how you can access the simply indexing like this one is in 0 1 10 00:00:53,380 --> 00:00:56,710 row 1 column is 0 1 2 3 4. 11 00:00:57,280 --> 00:01:04,270 So this is one for this card and this 1 0 1 2 3 0 1 2 2 4 5. 12 00:01:04,780 --> 00:01:06,640 So this is actually 3 5. 13 00:01:07,360 --> 00:01:13,690 So I am generally accessing the indexes and if you remember metrics the index is how we can access them 14 00:01:14,410 --> 00:01:27,160 then you are pretty sure that this thing that how we can use this simply put X in range say 6 taking 15 00:01:27,160 --> 00:01:28,770 access columns. 16 00:01:29,140 --> 00:01:35,680 And if I add buttons here right now or simply if I bring something say print 17 00:01:38,210 --> 00:01:49,420 high save this one and when you run this one you will get what we need higher here but not getting that 18 00:01:49,420 --> 00:01:50,580 one. 19 00:01:50,650 --> 00:01:53,240 Let me bring this one out of the window. 20 00:01:53,260 --> 00:01:57,190 Come on next and bring this this one here. 21 00:01:57,310 --> 00:01:58,330 Save this one. 22 00:01:58,430 --> 00:02:02,320 Run it again. 23 00:02:02,780 --> 00:02:04,800 We are not getting this one here. 24 00:02:05,760 --> 00:02:09,640 But I think you know what I'm seeing here. 25 00:02:09,660 --> 00:02:13,370 Let me know that one here so that you can have more ideas. 26 00:02:13,450 --> 00:02:34,020 They said well look why and fold X in range say six print high save this one right here Oh that's what 27 00:02:34,020 --> 00:02:37,860 actually I'm writing matchmaker would be like if I run wondered why 28 00:02:40,850 --> 00:02:44,240 and close this one that we get so sorry for that one I. 29 00:02:44,330 --> 00:02:49,500 That's what I'm thinking here I am not getting the output but actually I am running the matchmaker way. 30 00:02:49,640 --> 00:02:51,380 That is my net file. 31 00:02:51,740 --> 00:02:55,940 But when I run wondered why it's so we don't need this one right now. 32 00:02:55,970 --> 00:02:58,990 So when you run this one you get to six times higher. 33 00:02:59,360 --> 00:03:02,960 So basically what happened here from zero to 6 we have created height. 34 00:03:03,290 --> 00:03:04,820 But by only 1 Come on. 35 00:03:05,590 --> 00:03:19,680 And if I do something like Here add another loop in this one for y in range say for print high. 36 00:03:20,600 --> 00:03:30,650 If I do this thing and run it again and say listen I got high 24 times so that's how you can create 37 00:03:30,650 --> 00:03:36,290 things by using loops and simply a single comma. 38 00:03:36,320 --> 00:03:44,060 So what I'm going to do here I will add a loop here a nested loop in which I have six columns four rows 39 00:03:44,480 --> 00:03:53,810 and for every single of this one I will create a button simply button widget let it go so that's so 40 00:03:54,110 --> 00:03:55,370 I can add to the buttons here. 41 00:03:56,740 --> 00:04:08,230 After that Dedmon make something a would equal to three height equal to four. 42 00:04:08,350 --> 00:04:14,250 You can also increase decrease this one I'm just taking small cards after that one. 43 00:04:14,300 --> 00:04:18,330 This is about creating a button in that one. 44 00:04:18,370 --> 00:04:24,460 Now you need to place this one so buttoned up great and passed there. 45 00:04:24,470 --> 00:04:26,780 Now what about the grid. 46 00:04:26,840 --> 00:04:29,330 So what drew and what column do you need to pass. 47 00:04:29,420 --> 00:04:35,550 So I will create rows and columns by D X and fi so I hope you will get angry with this thing. 48 00:04:35,630 --> 00:04:37,530 I just need to pass the column there. 49 00:04:37,550 --> 00:04:47,770 So call them equal to X so it will begin from 1 0 and go up to 5 and draw equal to y. 50 00:04:47,810 --> 00:04:50,440 Next how I can create some buttons here. 51 00:04:50,720 --> 00:05:01,020 If I run this one right now they're legal something longer than the previous ones but but go out and 52 00:05:01,020 --> 00:05:16,970 twenty four buttons him and if I increase this one say this one then and this one's a it run that again. 53 00:05:17,090 --> 00:05:17,870 There we go. 54 00:05:17,870 --> 00:05:21,060 So that is I believe perfect and then my demo one. 55 00:05:21,170 --> 00:05:24,050 So we are going for this one not the one that I have shown you in demo. 56 00:05:24,050 --> 00:05:26,260 That is very small one. 57 00:05:26,270 --> 00:05:35,560 And also you will not get the option to expand this one so we are now done with the buttons. 58 00:05:35,680 --> 00:05:37,200 But what about the working button. 59 00:05:37,210 --> 00:05:38,560 They are just buttons right now. 60 00:05:38,560 --> 00:05:42,120 Nothing is happening and there is no symbol denoted on these. 61 00:05:42,130 --> 00:05:43,820 So how can I do that one. 62 00:05:43,870 --> 00:05:46,210 So that's what something we will do in the next video. 63 00:05:46,930 --> 00:05:56,170 But before that one here I need to add two more commands first once button of X Y equal to 64 00:05:59,060 --> 00:06:00,300 button. 65 00:06:00,530 --> 00:06:04,920 Why this Come on now whatever the button is created here. 66 00:06:05,220 --> 00:06:12,410 I'm going to store that button in my buttons variable so that I have all the buttons stored at a single 67 00:06:12,410 --> 00:06:16,370 place and I can do whatever I want with all the buttons there. 68 00:06:17,210 --> 00:06:27,150 So I am storing every single button there and also every single symbol in this one. 69 00:06:27,330 --> 00:06:30,810 So add one more here for symbols. 70 00:06:31,010 --> 00:06:37,450 So buttons and disco symbols for particular X and Y equal to. 71 00:06:37,540 --> 00:06:41,340 And now how can I get the particular symbol from this one. 72 00:06:41,640 --> 00:06:49,320 This one very simple symbols dot pop naming symbolize. 73 00:06:49,840 --> 00:06:53,050 So you just simply pop to one of these. 74 00:06:53,050 --> 00:06:59,410 And what they actually pop men like these things are stored in memory informal specs strike is something 75 00:06:59,410 --> 00:07:02,680 if you considered only this what you call column. 76 00:07:02,730 --> 00:07:06,300 Then when I add something the first thing I will add go in the bottom. 77 00:07:06,350 --> 00:07:09,520 Then the second on the top of that one then on the top of that one. 78 00:07:09,520 --> 00:07:14,130 Then again on the top of statement this is known as pushing or simply push. 79 00:07:14,320 --> 00:07:20,290 And when you put any element from this one you will first put the above and then below that and then 80 00:07:20,290 --> 00:07:22,230 below that and then in the last. 81 00:07:22,420 --> 00:07:23,590 This is known as Pope. 82 00:07:24,430 --> 00:07:26,660 So that's something method I have used to him. 83 00:07:27,550 --> 00:07:29,100 So this is about creating the buttons. 84 00:07:29,140 --> 00:07:34,900 And we are going for the decisive because I like this one more so thanks for watching. 85 00:07:34,900 --> 00:07:40,150 In the next video we will do our main logic that how the symbols will be shown here and how this will 86 00:07:40,150 --> 00:07:40,530 work.