Dev Prakash Sharma has Published 548 Articles

Creating a table look-a-like using Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:27:16

3K+ Views

A table contains data items in the form of rows and columns. Consider a case of having a table GUI in an application where we can manipulate the data using other Python libraries such as Numpy, Pandas, Matplotlib, etc. Tkinter provides TreeView widget which enable the user to draw the ... Read More

How to change the menu background color of Tkinter's OptionMenu widget?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:24:57

1K+ Views

Consider a scenario where we need something to display a menu with some choices in the form of a dropdown list. To achieve this particular feature, Tkinter provides an OptionMenu widget which consists of features to add choices and a list of items in it. We can set up the ... Read More

How to make a Tkinter canvas rectangle transparent?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 07:28:19

10K+ Views

The canvas widget is one of the most versatile widgets in Tkinter Library. Generally, it is used to draw shapes, animate objects, and create complex graphics in any application. To create shapes like Rectangle, we use the create_rectangle(x, y, x+ width, y+ height, **options) method. We can configure the item ... Read More

How to correctly select multiple items with the mouse in Tkinter Treeview?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 07:24:54

2K+ Views

The purpose of Tkinter Treeview widget is to provide the user to access the data which can be calculated and modified for the future needs of the application. The Treeview widget is used to populate the given data in a table format. We can add or insert a column, insert ... Read More

How to press a button without touching it on Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 07:23:24

3K+ Views

The Tkinter button widget can be used to perform a specific actionable event within the application. We can also invoke the button widget without performing a click operation on it. The invoke() method in Tcl/Tk does the same thing which returns a string in case if there are any commands ... Read More

Which widget do you use for an Excel-like table in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 07:21:05

2K+ Views

Tkinter is a standard Python library that is used to build featured GUI-based desktop applications. Tkinter itself offers a variety of functions and widgets that can be used to design and serve the application's needs.Tkinter Treeview widget is one of the consistent widgets which is used for driving the data ... Read More

What does the "wait_window" method do in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 07:18:23

5K+ Views

Tkinter has many inbuilt functions that power the application logic to make it more functional and maintainable. Tkinter has the wait_window() method which ideally waits for an event to happen and executes the event of the main window. The wait_window() method can be called after the event which needs to ... Read More

How to give Tkinter file dialog focus?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:43:43

1K+ Views

Tkinter Python library can be used to create functional and featured applications. It has lots of packages and functions that are used for different functionalities. The filedialog package in tkinter gives access to interact with the file system in a local machine. Using filedialog, we can get access to any ... Read More

How to use the "native" GUI look with Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:40:34

643 Views

We generally use Tkinter to develop standard GUI-based applications with default style and theme applied to all the widgets in it. To change the overall style of the application GUI, we use the ttk package. The Tkinter ttk is a themed widget which is used to style the tkinter widgets. ... Read More

What's the difference between "update" and "update_idletasks" in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:39:10

12K+ Views

Update method processes all the pending idle tasks, unvisited events, calling functions, and callbacks. The method is applicable for updating and processing all the events or tasks such as redrawing widgets, geometry management, configuring the widget property, etc.It also ensures that if the application has any pending tasks, then it ... Read More

Advertisements