Skip to main content

Posts

Showing posts from March, 2021

Mail Sending Using Tkinter

 Mail Sending Using Tkinter In this Blog We will learn how to send email through tkinter. Tkinter provides GUI toolkit. With the help of this we can create so many GUI applications.  In this blog we create the mail sending application using tkinter. Steps of the project: 1. Import required packages and library 2. Create basic GUI 3. Add required widgets to GUI. 4. Create a function for mail sending. 1. Import required packages and library: 2. Create basic GUI: 3.  Add required widgets to GUI.: 4. Create a function for mail sending. Output: smtplib: smtplib is the python built in library for sending and receiving the mail. SMTP stands for Simple Mail Transfer Protocol.  smtplib.SMTP(domain,port):  In this method add domain which you want for example gmail.com. SMTP has three ports which are 25, 465 and 587 by using this three ports we can send the mail.  smtplib.login(userid,password): This method logins to your account.And send mail from this email id.  smtplib.sendmail(sender,to,mess

Countdown Timer Using Tkinter

Countdown Timer Using Tkinter With the help of tkinter we create a countdown timer project for beginners. Tkinter is the built in python package. Tkinter provides GUI (Graphical User Interface)toolkit. With the help of this developer can create any GUI projects.  Steps of the Project: 1. import tkinter package 2. create a basic gui  3. add entry for Hrs, Mins, & Secs. and start button 4.  Create a function containing logic of timer   Step 1: Importing required packages   Step 2: Create Basic GUI  Step 3: Adding entry for Hrs. Mins. & Secs. and declare variable to store this values. Step 4: Create a function to perform timer. This is how we create countdown timer using python tkinter.  In this project we use divmod() function. This function helps to calculate quotient and remainder both. for example:- 1.print(divmod(25,5)) => (5,0) 2.print(divmod(5,2)) => (2,1) In the first example 25 is divided by 5 so quotient is 5 & remainder is 0. and same in second example 5 is di

Contact Form

Name

Email *

Message *