Dev Prakash Sharma has Published 414 Articles
Dev Prakash Sharma
14K+ Views
Creating an application using tkinter is easy but sometimes, it becomes difficult to close the window or the frame without closing it through the button on the title bar. In such cases, we can use the .destroy() method to close the window.As tkinter attributes are independent of each other, we ... Read More
Dev Prakash Sharma
3K+ Views
Let us suppose that we have a GUI-based Python tkinter application that takes the text input from the user and validates by saving it in a new text file. The file contains the same text input that the user has typed. We can check and validate the user input from ... Read More
Dev Prakash Sharma
2K+ Views
Python has many rich libraries for creating and developing GUI-based applications. Tkinter is one of the most commonly used Python libraries for creating GUI-based applications. It has many features like adding widgets and other necessary attributes necessary for creating an application.A button is a widget which can be assigned for ... Read More
Dev Prakash Sharma
1K+ Views
Python is the most popular language for developing and creating functional and desktop applications. It has a rich library of different modules and functions which provides extensibility and accessibility to create and develop applications.Tkinter is the most commonly used library for creating GUI-based applications. It has features like adding widgets ... Read More
Dev Prakash Sharma
5K+ Views
Tkinter is the most commonly used Python library for creating GUI-based applications. It has features like adding widgets and other necessary attributes.Let us suppose that we want to create a borderless window using tkinter. To create a borderless window, we can use the overrideredirect method which basically disables the window ... Read More
Dev Prakash Sharma
3K+ Views
Tkinter is a popular Python library for creating and developing applications. It has various methods and functions that can be used for adding multiple features in an application.Tkcalendar is one of the tkinter packages that can be used to create GUI-based calendars in the window and thus, we can perform ... Read More
Dev Prakash Sharma
560 Views
In this article, we will see how to create a GUI-based application that will calculate the average speed. The average speed of a moving object can be calculated using the following formula, Average Speed = Distance / [Hours + (Minutes/60)]To select the input value, we will use the SpinBox method ... Read More
Dev Prakash Sharma
322 Views
Let us suppose you have given a dataset with various variables and data points thus in order to plot the cluster map for the given data points we can use Clustermaps class.In this example, we will import the wine quality dataset from the https://archive.ics.uci.edu/ml/datasets/wine+quality.import matplotlib.pyplot as plt import numpy as ... Read More
Dev Prakash Sharma
2K+ Views
Given a Binary Tree, the task is to check whether it is a Full Binary Tree or not. A Binary Tree is said to be a Full Binary Tree if every node has zero or two children.For ExampleInput-1Output:1Explanation: Every node except the leaf node has two children, so it is a ... Read More
Dev Prakash Sharma
4K+ Views
Given a non-negative number, the task is to find its smallest digit.For exampleInput:N = 154870Output:0Explanation: In the given number '154870', the smallest digit is '0'.Approach to Solve this ProblemThe simplest approach to solve this problem is to extract the last digit in the given number using the remainder theorem. While traversing ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP