Tkinter

Tkinter allows you to create a user interface for your program. Use the lines of code below

Window

You need to create the window

Import Tkinter

Window setup

Creating Objects

Your window can contain various objects – the common objects can be created using the lines of code below.

Labels

Label

Buttons

Button

Entry Widgets

Entry Widget

Inserting Objects

Once the objects are created they must then be inserted into the window. You should choose only one method from those outlined below to avoid any confusion.

Pack

pack

Grid

Grids

Place

place

%d bloggers like this: