Found 525 Articles for Tkinter

Combobox Widget in Python Tkinter

Harshit Sachan
Updated on 20-Apr-2023 13:01:56
Tkinter is a Python binding to the Tk GUI toolkit. It is the standard Python interface to the Tk GUI toolkit, and is Python's standard GUI. Tkinter is included with standard Linux, Microsoft Windows and macOS installations of Python. We can create many widgets from python’s tkinter module. One of those multiple widgets is Combobox which is a very widely used powerful tool that can be customized to create lists that allow users to select one or more options from a list of given options. The Combobox widget combines a text input with a drop-down list, allowing the user ... Read More

Create a GUI to Get Domain Information using Tkinter

Tamoghna Das
Updated on 20-Apr-2023 11:29:23
In today's world, many businesses depend heavily on their online presence. Before setting up a website or purchasing a domain name, it is essential to get as much information as possible about the domain you plan to use. It may include information like domain owner, server location, IP address, WHOIS details, and much more. Therefore, in the following instruction manual, we'll guide you about creating a GUI to get domain information using Tkinter. What is GUI? GUI (Graphical User Interface) is a way to present data to the user in the form of interactive windows, buttons, and menus instead of ... Read More

Create a GUI to check domain availability using Tkinter

Tamoghna Das
Updated on 20-Apr-2023 11:10:52
What is the need for domain? The internet has become a vital part of our daily lives. When it comes to businesses, having an online presence is crucial. Choosing the right domain name is the first step in establishing an online presence for any business. However, finding an available domain name can be a daunting task. In this technical document, we will guide you through the process of creating a graphical user interface (GUI) in Python using the Tkinter module to check domain name availability. What is a domain and what are its components? In the context of the internet, ... Read More

How to add PDF in Tkinter GUI Python?

Manas Gupta
Updated on 23-Mar-2023 15:19:45
This article will teach us how to display PDF files in the Tkinter GUI. We will be using the PyMuPDF library to read the pdf files and convert them into images which will then be displayed using Tkinter. For our task, we will do the following steps − Read the PDF file. Define a transformation matrix to apply on the pages of PDF to get their images. Count the total number of pages for error checking. Define the screen (the canvas) for our GUI. Define a helper function for converting a PDF page to a PIL image. Define ... Read More

How to highlight a tkinter button in macOS?

Dev Prakash Sharma
Updated on 22-Dec-2021 11:19:35
Tkinter is a Python based GUI toolkit that is used to develop desktopbased applications. You can build the different components of an application using tkinter widgets. Tkinter programs are reliable and support crossplatform mechanisms through which a particular application can run on multiple platforms and operating systems. However, there are some of functions and class libraries that work perfectly on Windows but may not work on a Linux system.Tkinter Button widget, specifically in macOS, creates nativelooking buttons that can be customized by using the library functions and parameters available in tkinter. However, you can customize the button by highlighting it ... Read More

Changing the background color of a tkinter window using colorchooser module

Dev Prakash Sharma
Updated on 28-Dec-2021 07:23:21
Tkinter offers a wide variety of modules and class libraries using which we can create fully functional applications. Tkinter also provides widgets to build the components and skeletons of an application. The colorchooser module in tkinter is one of them which provides a huge set of colors so that users can pick and set the background color of widgets based on their preference.To add the colorchooser functionality in your application, you have to first import this module in your program using "from tkinter import colorchooser". Next, create a variable to display a color palette using colorchooser.askuser().Since all the colors in ... Read More

Python Tkinter – How to display a table editor in a text widget?

Dev Prakash Sharma
Updated on 22-Dec-2021 11:12:08
Tkinter is a Python-based GUI toolkit that is used to create fullfledged desktop applications. Tkinter has a variety of modules and class libraries to help developers create userfriendly applications quickly and easily.The Text widget in tkinter provides users a way to create a text editor that accepts multiline user-input. You can configure and customize its properties and attributes. Suppose you want to represent your 2-dimensional data in a table using only the Text widget. To create a table in a Text widget, we have to first create a 2-d array consisting of data that needs to be displayed in the ... Read More

How to disable an Entry widget in Tkinter?

Dev Prakash Sharma
Updated on 22-Dec-2021 11:10:31
Tkinter Entry widget accepts single line user-input in an entry field. You can customize the width, background color and size of the entry widget based on the need of your application.Let us assume that in a particular application, we want to disable an Entry widget. To disable the Entry widget, use state='disabled' property in the constructor. Disabling the Entry widget will not allow users to edit and add values to it.ExampleLet us understand this with an example. In this example, we will create an Entry widget using the constructor Entry(master, **options) and a Button to disable it. The function disable_entry() ... Read More

How to resize an Entry Box by height in Tkinter?

Dev Prakash Sharma
Updated on 22-Dec-2021 11:08:24
An Entry widget in a Tkinter application supports singleline user inputs. You can configure the size of an Entry widget such as its width using the width property. However, tkinter has no height property to set the height of an Entry widget. To set the height, you can use the font('font_name', font-size) property. The font size of the text in an Entry widget always works as a height of the Entry widget.ExampleLet us take an example to understand this more clearly. Follow the steps given below −Import the required librariesCreate an Entry widget, set its width and height by specifying ... Read More

How to add a column to a Tkinter TreeView widget?

Dev Prakash Sharma
Updated on 22-Dec-2021 11:06:19
Tkinter TreeView widget is used to present data in a hierarchical manner in the form of rows and columns. To create a Treeview widget, you have to first create a constructor of Treeview(master, column, show='headings') widget. Here, you can specify the list of columns and pass the value to the column parameter that you want to include in the table.The indexing of data in the Treeview widget starts from 0. Therefore, to avoid counting the first column, we need to use the show=heading parameter. Let us create an application to show a table with two columns "ID" and "Company" of ... Read More
1 2 3 4 5 ... 53 Next
Advertisements