Hi.
In today's code experiments, we're going to run a few experiments on the gooey.
Currently, we have this output.
So now I'm going to change something here on the widgets line and see how that will reflect in the output.
Now, I do suggest that when you close the app, don't close it with that button, but stop it here.
This as long as we are developing the program, this is a better way to stop the program.
Otherwise, you might have some errors.
Later on, we're going to create an executable file of this program, which means that you will not
need Python to execute this program.
Anyone can get the program and they can use it on their computer.
They don't need to have Python installed.
They don't need to know Python.
So it's going to be a distributable file.
Then we're going to close a program.
Using that button or another exit button which will add to the gooey.
So now let's focus on the experiments.
Look at this list of lists here.
What happens if we remove all the inner brackets inside the list and we only live one pair of brackets?
So the opening square brackets here and the closing square brackets here.
If I run the code now.
We're going to get this error.
And this particular line here is important to understand what's going on.
It says that instead of a list, the type found was class pie symbol gooey.
So what it's trying to say is that.
This list has to have other lists inside.
So this is a flat list with other items, but you need to have another square of brackets and then.
You can put the pie simple Google widgets inside those brackets.
So in other words, each row in the go has to be a list.
So basically you have the bigger the list first alter list, and that list will contain list of rows.
So each row in the guy has to be its own list.
So now if I run the script, we're going to to have one single row.
You see now that label input box and add button are in one single row label input box and the add button.
So having them in the list puts them in one single row in the group.
That's something I wanted you to be clear about.
No, let me stop the program.
And if you play something like a string here, like hey, or whatever, or here, you put a number and
you run the program, you're going to get an error.
I think that's what you expected as well.
So these things have to be by simple.
Widget types.
So that is a specific type.
Which creates this widgets.
Otherwise, things will not work.
And the last experiment, again, is related to the widgets.
If you place everything in.
A separate list.
So every widget is inside a list like that.
So now we have a list of three lists.
That's the first list.
That's the second list.
That is the third list.
That is the entire list.
Now, you should be able to forecast to predict the output.
So try to think, what are we going to get if I run the script now?
If you guess it, you're doing well.
Very well.
So we got.
A guy with three rows in each row.
We have we have one widget, so we have the label widget in the first row.
We have the input box widget in the second row and we have the button widget in the third row.
So as I said before, each list inside the list represents a row that proves it.
So let me stop the program.
And that was the code experiment for today.
Thanks.
See you later.