Dev Prakash Sharma has Published 556 Articles

How can I play a sound when a Tkinter button is pushed?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:51:06

3K+ Views

Python has many inbuilt libraries and modules that are used for building various application interfaces and components. Pygame is one of the python modules which is used to design and build video games and music. It provides a mixture to handle all sound related activities. Using music sub-module, you can stream mp3, ... Read More

How to make a Button Hover to change the Background Color in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:50:50

1K+ Views

A Button widget in Tkinter has many inbuilt features which can be used to configure and perform a certain task in the application. In order to run a particular event in the application, we can use the bind("", callback) method to bind a function or event with the button. To ... Read More

How to bind multiple events with one "bind" in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:50:34

3K+ Views

For a particular application, if we want to perform multiple tasks with the help of buttons defined in it, then we can use the bind(Button, callback) method which binds the button and the event together to schedule the running of the event in the application.Let us suppose we want to ... Read More

How to open an Excel Spreadsheet in Treeview widget in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:50:17

7K+ Views

An Excel Spreadsheet contains a set of information stored in the form of rows and columns. We can display and use the spreadsheet data in the Tkinter application using Treeview widget. The Treeview widget in Tkinter helps users to add and manipulate the data in the form of a table. However, ... Read More

What is the best way to show data in a table in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:49:57

6K+ Views

Generally, we represent data in the form of tables. A table contains a set of rows and columns. Data gets stored sequentially in the form of rows and columns in a table.Let us suppose that we are building a Tkinter application such that we have to store the Student’s data ... Read More

How to create a resizable Windows without title bar in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:49:40

4K+ Views

To create a tkinter window without title bar, we can use overrideredirect(boolean) property which disables the navigation panel from the top of the tkinter window. However, it doesn’t allow the user to resize the window instantly.If we are required to create a resizable window without the title bar programmatically, then ... Read More

How to get the value of a button in the Entry widget using Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:49:00

8K+ Views

Buttons are a very useful widget in any Tkinter application. We can get the value of any button in the Entry widget by defining the function which inserts the value in the Entry widget. To get the value, we have to first define buttons having command for adding the specific ... Read More

How to switch between two frames in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:26:53

9K+ Views

In most cases, you need to have several screens to allow the user to switch between different segments of your program. One way to achieve this is to create separate frames that lie inside the main window.A-Frame widget is used to group too many widgets in the application. We can ... Read More

How to open multiple filenames in Tkinter and add the file names to a list?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:24:44

3K+ Views

To open a file dialog in a tkinter application, tkinter provides the tkfiledialog package which creates a dialog box to interact with the external files located on the system. In order to work with filedialog, we have to first import the package using the following command, import tkinter.filedialog as fdTo open ... Read More

How to display a Listbox with columns using Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:24:28

5K+ Views

To deal with lots of data in any application, Tkinter provides a Treeview widget. It has various features such as displaying data in the form of tables consisting of Rows and Columns.Treeview widget enables the user to add tables, insert data into it, and manipulate the data from the table. ... Read More

Advertisements