Tkinter Library's Method

Tkinter Library's Method

Let's talk about one of the methods of Tkinter Library used in Python Programming Language, "Listbox".

A Listbox is a widget that is used to display the list of elements. Elements can be of different types of items. We call the listbox widget from Tkinter library. We can display elements by mentioning the index and the element as parameters of the Listbox method.

We can create a desktop application by just using the Listbox widget as the main Widget. Entry widget can be used to add elements inside the Listbox and we can select items from the elements based on our requirements as we can select one item at a time, multiple items can be selected or we can use arrow keys to select and navigate to different items of the Listbox.

I have created a basic desktop application using just a few widgets such as an Entry widget, button, Label, and Listbox widget.

I named the application as To-Do application, where we can add multiple tasks inside the listbox by clicking on add button,

To view or add a comment, sign in

More articles by Soonha Soomro

  • DOMAIN & HOSTING Explained (Beginner’s Guide)

    If you’ve ever wanted to create your website, you’ve probably come across the terms domain and hosting. Maybe you’ve…

  • A COMPLETE BEGINNERS GUIDE TO APIs

    APIs are the backbone of modern software development, allowing different applications to communicate seamlessly. But…

  • Model-View-Controller in the context of Flutter

    Model View Controller is an Architecture. Let's break this word by word to understand this Architecture.

    6 Comments
  • What I learned today?

    Nothing. Yes, nothing but a bit.

  • Revealing my "PSP" Project

    I have built a Python Machine Learning model named PSP (Pakistan's Situation Predictor) that can predict changes in…

    2 Comments
  • PSP machine learning model

    Machine Learning stands out as a transformative force unlocking new possibilities and redefining how we approach…

  • Variables in Python

    A variable is like a container, where we can store anything, let's take an example, such as you have an empty jar, and…

  • Functions in Python

    In Python, a function is a block of organized, reusable code that performs a specific task. Functions provide…

Explore content categories