Learning Python- Intermediate course: Day 19, Tkinter — Types of Widgets part 2
Tags: python, programming, learningpython
Published: 2021-09-02 10:04:10

Today we will cover the more types of the widgets in Tkinter. 
---
____
>**Recap** widgets are graphical elements like buttons, frames, textboxes etc. which are helpful in taking input from the user in graphical format. In the last part we saw different types of widgets like checkboxes, radio-buttons and simple buttons. In case you have missed the last part [here](https://dev.to/aatmaj/learning-python-intermediate-course-day-18-tkinter-types-of-widgets-part-1-2i6h) is the link.

### Types of widgets in Tkinter continued..........
 

- Frame

The Frame widget is like a photo frame. We can stick on various types of widgets into this 'container'. It has only one job- To provide a place where other widgets can be fixed. A blank frame is just like a plain sheet.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efb088akio8smd89091z.png)
 
- Label

The label widget is an output type of widget. It is used to display text values in the application.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a3ct3vzs0t5zgepg7whc.png)
 
- Listbox

 Listbox also is output type of widget. It can display only text elements. Moreover, all the text items must contain the same font and colour.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j3bfbl8gnpiu6i8v5m4y.png)

The user can choose one or more items from the list depending upon the configuration.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/138lehicvh1l9eblv65z.png)
 
- Menubutton

Menu button is a drop-down menu. We can select one or more options from the drop down menu box.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9d3i38w31i2j2rg7fsdf.png)
 The drop down opens once the menu button is clicked. 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qfxiuurtj2skreyh25xy.png)

- Scale

The Scale widget is a very interesting widget. It is used to create a graphical slider which the user can move around for the input.
We can control the minimum and maximum values along with the resolution of the scale. It provides a 'continues' alternative to 'discrete' radio buttons. Which means rather then having to specify 50 checkboxes we can just have one slider. It is useful over the Entry widget when the user is forced to select only one value from the given range of values. 

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vwr96i3v9xy0oq1dedws.png)
-  Scrollbar

Everyone knows what a scrollbar is. The scrollbar widget is used to scroll down the content of the other widgets like listbox, text, and canvas.  
We can also create the horizontal scrollbars to the Entry widget.


![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ajlso7pxwa8mhrmf2m2l.png)
 
- Entry

The entry widget is a widget which takes in textual input.  It can only be used for taking in one line of text from the user.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h4qsco9r2a1f9bvej4qn.png)

- Text

The Text widget is used to show the text data on the Python application. However, Tkinter provides us the Entry widget which is used to implement the single line text box.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cmxg4d7jn6ijvu93fu84.png)

> The difference between a text-box and entry widget is that entry widget can only take input of one line while textbox can accept multiline inputs 

______
### To be continued.....
**Image credits**- All images in the text are my own screenshots.