hi everyone welcome back to our channel hope you guys are well so today in this tutorial i am
going to show you how you guys can make a login from or a registration from using just python
and before we start if you guys are new in my channel then please please subscribe
like this video and press the bell icon for the future videos so let's go back to our tutorial
now first you have to open your code editor and then create a project and here you can see that
this is my project login in python now right click on this and now we have to create a python file
this python file will be project dot py that's it now here you can see that i have created
a project dot by file now for creating this registration from i'm going to using kinter module
and i have already installed this skinter module in my project file and if you don't have installed
this package in your project file then go to terminal and here you just have to type pip
install and then enter that's it and then type enter okay but i don't have to type enter because
i have already installed this package in my project file so first i have to import this enter
file in my project file so that's why from kinter i want to import everything so that's why i import
and then start that's it now i want this kinter file into a root file so that's why we have to
first give a root and then enter okay so now i want to this root file to be always main
loop so that's why root dot it will be main loop that's it now first here now we have to create
a form we have to create a window for showing our registration from so that's why i will give root
and now i will call our geometry property and here we have to give a width and height and i will
give a width of 500 and then x and i will give a height of 300 that's it so if we now run our file
here you can see that now i have a window here and this is 500 width and 300 height
now here i will put my heading my entry field and name field phone number field or anything
you want so for doing this first i am going to create a heading here so for creating
our heading we have to take level that's it and i want this level to be in the root file
so that's why root and i want to show a heading so that's why we have to give text
and inside this text we have to give a heading and here i will give python
registration form that's it and now i will give a font and our font will be arial and
i will give a font size and it will be 15 and i want this font size to be in bold that's it
so if we now run our file here you can see that we can't see anything because we have to use
grid file or we have to pack this label file so that's why i i am using grid so that's why dot
grid and here now we have to give row and column so for row it will be in 0 and
for column it will be in c so now if we run here you can see that i can see my python registration
from heading here now i want some field here like name field phone number field or gender field so
for doing this now we have to create some variable so my first variable for our name will be name
and this will be a level and i want to this level to be in the root file and the text will be named
that's it now i will just simply duplicate this for our phone number for our gender and
for our emergency and for our payment mode that's it so this will be our phone
and our text will be also phone this will be capital letter and
that's it and this will be our gender and this will be also gendered
now this will be our emergency and this will be also emergency and here it will be
payment and it will be also payment mode so after initializing our level files now we have to
pack these variables so that we can show these things in our form so if we now run our from
here you can see that we don't have anything because we have to pack these things first or
we have to use grid for this thing so that's why first i will give grid so for packing this thing
we have to use grid and here in this grid we have to use two value one is row and one is column and
for our column it will be everything in our second column now i will just simply duplicate this line
and this will be for our name field and this will be for our phone number field
this will be for our gender field this will be for our emergency field and this will be for our
payment mode field that's it and here row will be here you can see that our heading was in row 0 and
so our name field will be row 1 and this will be row 2 and this will be row 3 4 and f5 that's it
so if we now run our file here we can see that now we have our name field our phone gender emergency
and payment mode now i want some fields so that we can type our name we can type our phone number and
other things so for doing this we have to create entry here in our python file so for doing this
now we have to use entry field and before fast we have to create some variables for
storing our values from our name for our phone number for our gender for our emergency and
for our payment mode so i want some variables so that these values can be stored on that variable
so that's why now we have to create some variable so for our name field i will give name value
and it will be actually a string bar and i will create our phone number below
and this will be our also string bar now i just simply duplicate this line that's it
so this will be our gender and this will be our emergency
and this will be for our payment boot that's it so now if we now run our file here i want a check
button for remembering me or anything so i want a check button here so so the variable name will be
check value tag value will be integer because it will be either one or either zero so that's why
it will be an integer value so that's it so now we have to create our entry field so that's why type
entry and here it will be entry that's it and our entry value always will be in our root file and
the text variable will be that variable name for that entry so i will just simply duplicate this
line so this first entry will be for our name entry so here it will be
name and our text value will be also named value because in our name entry whenever i
write something i want that value to be stored in our name value which is here name value and
this is actually a string because our name will be always be string so that's why i used name
value here so after name value now we have to create our second entry which is our phone number
and our phone number entries will be saved in our phone number value third entry will be for our
gender and this value will be also stored in our gender value that's it and our fourth value is
will be for our payment mode and this value will be also stored in our payment mode value and this
value will be for our emergency and this value will be stored in our emergency value that's it
so if we now run our file here you can see that we can't see our
entry field because we have to pack this values first then we can see our entry field so that's
why now we have to pack our files so our first entry will be name entry and now use grid that's
it and here we have to give row and the column so this will be row and the second value will be
column that's it now i will just simply duplicate this line and this will be for our
phone number entry and this will be for our gender entry and this will be for our emergency entry
and this will be our payment mode now our column will be three for every field and our row will
be here you can see that our heading is in our row zero so it will be row one and a two
three and four and five that's it this will be payment mode so if we now run
here you can see that we can see our entry here and we if we now write anything here
it will be stored in our name variable so here you can see this is our name variable
so now i want to make our check box here underneath this field so for doing this
let's recap everything for a while so that we can understand better
so here you can see that first we have imported our kinter file and then i put this kinder file
in in our root file and here you can see that this is for our frame our registration frame
that's why i used width and height and this will be for our heading so let's comment out
this will be our heading and here you can see that this fields will be for our field name
that's it and after creating our fields we have to pack these fields so that's why they are we are
packing our field here so that's why it will be packing fields that's it so after packing fields
we have created some variable so that our values can be stored here so that's why here it will be
variable for storing data that's it so after this part we have created our entry field so
here you can see that we have created our entry field so here we'll be creating entry field
that's it so after our creating entry field now we have to packing our this entry field so that's
why here in this part i am packing all our entry field so that's why here we'll be packing entry
fields so after our packing entry feeds now we have to create our check box
so here it will be checkbox so
creating checkbox that's it now here in our check box we have to first create a variable so this
will be check button and our check button is will be actually a button so that's why we have a check
button here so this will be check button and here now we have to give a text for our check button
and this text will be remember me that's it and i want to store this value in our this
check value variable so that's why now we have to get this variable here so wherever we check
value that's it and now we have to packing this button so that's why check button dot greet now
we have to give a row value so our row value will be after 5 it will be 6 here and we have to give a
column value and our column value will be 3 that's it now if we run our file here you can see that we
have a check button here remember me check button so now here you can see that we have created our
heading we have created our name and our gender and emergency and payment mode and we have killed
our entry field and here you can see that we have created a remember me button also now we have to
create a button for our submitting so for doing this let's comment out first this would be submit
button that's it so for creating button we have to get button here and for our pattern our text to be
submit that's it now i want to create a function here because whenever i will create in our button
in our submit button it will send us a message that we have accepted the form we have accepted
some details so for doing this here it will be a command that's it and in this command we have to
create a function and this function name will be get bells that's it now we have to pack
everything here so that's why we have to use grid and then here we have to give a robot when column
value for our row value it will be 7 and our column value will be 3 that's it so now here
you can see that we have created a get value function now we have to define this function
at the top here so let's define our function here that's it now whenever we click on our submit
button here you can see that whenever we click in our button i want to send a message in our
terminal here so for doing this here we have to just type print and here we have to write accepted
that's it so now if we run here you can see that we have our submit button here so now every time
we click on our submit button here you can see that we have a accepted message if we now click on
our submit button again we have again accepted and if we now click on our summit button again so here
you can see that we can see again accepted i think we have created our python registration from here
actually we have done a spelling mistake here in our registration i'm sorry about that
so this would be so yeah that's it it will be registration so i'm sorry about the spelling
mistake so if we now run again here you can see that now everything is okay so now we have our
name field phone number field gender field emergency field and our payment mode here so
here we have some entries and we have created a check button and we have created a button here
every time we click on our button we can see some message here if you know click again we can see a
message again and now in our next tutorial we will make this registration from functional so
that's it guys we have created our python registration from i think you guys entered
this tutorial and if you guys really enjoyed this tutorial then please please subscribe
like this video and press the bell icon for the future videos and if you guys have any question
about this video you guys can comment below and i see you guys in our next tutorial i know