Everyone so in this video we are going to learn about the basic thing to that how we can create a window.
So first of all if you go to the north and open the introduction notes in that one.
This one is for a little idea.
You will find that the Python provides various options for developing graphical interfaces.
These are the four available options and there are many more but here only four are listed out of each
dating to day in build one.
And most of the users pay for this one.
And then we have these three also these are something like we have met broadly as.
Then we have seaborne brutal by for a better interface.
You can also pay for these and learn about Declan.
But our subject is only dating to so anything to creating a new application.
It's only of three steps.
First of all creating the window that is like you can see this one is a window completely then adding
some widgets.
This the second step which I think you understand that like this both turns out.
Visits the scroll bar is a visit and all these things.
The text here return.
This is also a visit.
And now here I have listed all digits.
One more thing The third step that I have told you to like creating the window then adding the widget.
Third one is the adding the main functions that what that perform like on clicking any of these files
here I get the option to write anything.
Over it.
So here we have fewer widgets.
I have categorized 15 types but these are 19 because some are like each other.
And the reason of the first one is the button a simple button then you can see him.
This one is known as a button.
Then we have a canvas can we do something.
You can create any figure there.
Then these guys into a button check button very you can just make this one tick.
Then entries in which you can fill the data frames that will divide this section and this thing is the
main window in which you have these clauses at precise.
Then here the label list books.
Then we have menu button and then we have a complete menu the messages the radio button like you can
select only one at a time of these the scale scroll bar.
This one as I have shown him the text in this you can add Dex top level like the popup windows spin
box in which you can up and down the values then we have been with nose level frames and message books.
So these are a few of these listed here.
After the mention of attributes also.
But we will talk about that later.
So this is to show you that what actually these things are.
I hope you got a little idea of these things right now but when we consider these one by one we will
try to focus on many of these and cover a lot.
The one that we left here you can learn about that one separately.
So now let's begin first of all with creating a window that how we can create something.
Let me go that one and one more thing again.
You can before any of the item like even if you choose only determiner You can also do in that one.
I will show you that one later must first go with the item there we have the item and there we go.
So for trying to create a new file and named discern as.
Don't be late decay.
Don't be like you save no if you even notice on this one.
This one is a window inside of his days.
There are some comments now if you look at this one then it seems that it's a little harder to create
this one.
Like we need to have some dimensions here how wide and how long this one is.
We have these three symbols that is cutting minimize and expand and we have some particular name here.
Carlos and how we can create distance.
So if I literally say you this one is very easy you will see in a while like with a stick wire four
lines of commands for creating these kinds of windows even just to if he are working perfecting your
computer.
So first of all we need to import distinct as the days the day by 10 but we need to import that.
So import thing to make sure all the things are in small case let us know.
And at the step you need to do here is from you have to do this one again but in a different way.
Think the import start here is timing is everything.
So generally I have again import completing to add these two lines.
And then if you want to create this window.
So first of all we need to have a window.
So I have a variable denoting the window.
And here you just need to do capital T and k if you are using Python 2 then this one is a small tea
and smoking tenses.
Now you have in those created then you need to add another line that is the again same variable note
main loop.
So this one is just like the estimate.
Anything written in between these two will work in that window.
So if you want to add any functionality to that fund you need to add in between these.
So if you save this one commanders and if I run this one first of all today Friday stop.
Now if I run that file Python three decade don't be Y.
David go with David.
So if you notice this one this is very easy to create just four lines of code here.
These four lines and we have these options available with that one this all the things are done by the
printer.
Having this white background color like this one is also a task how divide colors do noting here while
all the things in the background are black right now.
So that's what all the things think to do adding this about thing their name main filing.
Now if I got that one and first of all let me move to determine.
I have shown you this one and this is all about creating a window.
One more thing you can just create the dimensions of that one like add a variable here when DOD and
add geometry because geometric efforts do like they hide traits and all these things and in that one
would cause positive dimensions you need like if I pass a hundred X hundred this one is X not a star
so make sure you're using x commanders and if you run that well right now you'll get this one in two.
If I make this one like 400 into 400
one more thing until you cancel that one you will not find income come on Terminal A a new option to
right come on because the application is still going on here we have five hundred into five hundred.
So this is about the creating we know now one more thing.
You can just directly do that one here.
Now if I run a python shell Python 3 if you want to create a file you can also create file and then
write the thinks import thing done then from doing the import stuff.
Now as soon as you write this one Becky you will get your window here this one and then you can add
whatever to come on in that when you need like windowed geometry and had I lost that one let me write
that one in windowed geometry and then we have this one say 400 x 400 hit enter the expand.
So as you make changes here you will get the changes there.
So you can also create this one in terminal because that one is more easy than Adam right now and even
you can therefore the Jupiter notebooks if I have a notebook here that it's run
will
a new python file.
And this one.
If you do import data then im from think the these two lines do not take much time.
So make this one a habit to importing these.
This one also I will tell you here that why these two lengths.
So from trying to import star shifter done and then we have Vin is equal to taking Prentiss shift return
and there we have this know that right now
so right now the file is trending.
Actually you will get a window pop up there.
No way.
All these things like these two commands they're linked to and from think tank or stuff.
Let me show you that one also.
So an internal shell here.
If you do something like import only thing though then not in every case you human get output but in
some cases if you do win is equal to decay fences you will get added that is named decays not defined.
But I have actually imported that one but still T.K. is not defined.
So in that case you need to add that one from thing to import star and then when you run that one win
equal to taking hatred then you will get the window and let me know move to that one again.
Exit a new tension that is Python 3 and if you do only from Star import into.
Then again not in every so.
I have tried to oppose it coming from thing to import star so again not in every case but in most of
the cases when you do that one and try to make a new window hit return.
Here again the output but it isn't possible you will not get there so it completely depends that what
kind of computer you have.
So they are just two lines so don't be lazy about that one.
Just add all the two lines then you will not get added in any case.
So this is all about creating a window.
We will continue with the widgets from the next video.
Thanks for watching.
Sue them.