Skip to content

somrajchowdhury/Python_GUI_tkinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tkinter GUI

Python GUI programming using tkinter

tkinter is a standard Python GUI package.

Program List

Buttons in tkinter

Check out : tkinterBUTTONS1.py

Learn and code out most of the button types in tkinter.

Code Output :

tkinter buttons1

(Back to top)


Book Management System

This Book Management System is a CRUD (Create, Read, Update and Delete) application with a feature to search for books in the database. This application is supported with form validations and info messages as you use the various features of the application.

Developed using :

  • Python 3.7.0
  • tKinter (Tcl/Tk 8.6)
  • SQLite3 3.21.0

Screenshots 📷 :

Add Book Window.png
Add Book Window
View Book Details Window.png
View Book Details Window
Delete Book Window.png
Delete Book Window
Update Book Window.png
Update Book Window

Click the button below to see the working and features of the application.

Link : Book Management System

(Back to top)


The Movie Place

The Movie Place! application uses an API to extract movie data using URL requests and displays the relevant retrieved data from the API on to the GUI.

API used:

OMDb API

The OMDb API is a RESTful web service to obtain movie information. By default all OMDb API responses are formatted as JSON. However, OMDb API also supports responses formatted as XML.

Libraries used:

  • tkinter - to design the GUI
  • pillow (PIL) - to make images compatible with tk GUI
  • io - to encode and use images from URL
  • requests - to request and read data from the API response
  • urllib - to request and read data from the API response
  • socket - to configure connections
  • json - to load and retrieve required fields from the API response

Screenshots 📷 :

The first window that shows up is where you enter the name of the movie whose info you want to display on the GUI.

enter movie name.png

Suppose I enter avatar in the entry field,

enter avatar

If the movie is found, the response is sent and the GUI looks like this,

avatar

If the entered movie is not found, it is notified in the GUI using a validation message,

not found

Also, at times there might be some issues connecting to the API service, in that case you get a message to resumbit, where you just need to click the SUBMIT button again

resubmit

Some more screenshots

harry potter stranger things
uri 3 idiots

(Back to top)


The Weather App

The Weather App uses an API to obtain current weather data using URL requests and displays the relevant retrieved data from the API on to the GUI.

API used:

OW API

  • Access current weather data for any location including over 200,000 cities
  • Current weather is frequently updated based on global models and data from more than 40,000 weather stations
  • Data is available in JSON, XML, or HTML format
  • Available for Free and all other paid accounts

Libraries used:

  • tkinter - to design the GUI
  • pillow (PIL) - to make images compatible with tk GUI
  • io - to encode and use images from URL
  • requests - to request and read data from the API response
  • urllib - to request and read data from the API response
  • socket - to configure connections
  • json - to load and retrieve required fields from the API response

Working of The Weather App

The first window that shows up is where you enter the name of the location.

first window

If the location is found in the API, the weather data is returned.

weather data

If the location you entered is not found, the GUI shows a relevant message.

not found

Also, at times there might be some issues connecting to the API service, in that case you get a message to resumbit, where you just need to click the Submit button again.

resubmit

The following shows a working example of The Weather App

The Weather App

Screenshots 📷 :

england durban mysore

(Back to top)

About

Codes for basic GUI elements in tkinter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages