Python Tkinter Widgets

Tkinter Widgets

There are various controls, such as buttonslabelsscrollbarsradio buttons, and text boxes used in a GUI application. These little components or controls of Graphical User Interface (GUI) are known as widgets in Tkinter.

Python Tkintor Widgets

These are 19 widgets available in Python Tkinter module. Below we have all the widgets listed down with a basic description:

Name of WidgetDescription
ButtonIf you want to add a button in your application then Button widget will be used.
CanvasTo draw a complex layout and pictures (like graphics, text, etc.)Canvas Widget will be used.
CheckButtonIf you want to display a number of options as checkboxes then Checkbutton widget is used. It allows you to select multiple options at a time.
EntryTo display a single-line text field that accepts values from the user Entry widget will be used.
FrameIn order to group and organize another widgets Frame widget will be used. Basically it acts as a container that holds other widgets.
LabelTo Provide a single line caption to another widget Label widget will be used. It can contain images too.
ListboxTo provide a user with a list of options the Listbox widget will be used.
MenuTo provides commands to the user Menu widget will be used. Basically these commands are inside the Menubutton. This widget mainly creates all kinds of Menus required in the application.
MenubuttonThe Menubutton widget is used to display the menu items to the user.
MessageThe message widget mainly displays a message box to the user. Basically it is a multi-line text which is non-editable.
RadiobuttonIf you want the number of options to be displayed as radio buttons then the Radiobutton widget will be used. You can select one at a time.
ScaleScale widget is mainly a graphical slider that allows you to select values from the scale.
ScrollbarTo scroll the window up and down the scrollbar widget in python will be used.
TextThe text widget mainly provides a multi-line text field to the user where users and enter or edit the text and it is different from Entry.
ToplevelThe Toplevel widget is mainly used to provide us with a separate window container
SpinBoxThe SpinBox acts as an entry to the “Entry widget” in which value can be input just by selecting a fixed value of numbers.
PanedWindowThe PanedWindow is also a container widget that is mainly used to handle different panes. Panes arranged inside it can either Horizontal or vertical
LabelFrameThe LabelFrame widget is also a container widget used to mainly handle the complex widgets.
MessageBoxThe MessageBox widget is mainly used to display messages in the Desktop applications.

Using all the above-mentioned Widgets, we can create amazing GUI applications.

Follow Us On