Dev Prakash Sharma has Published 556 Articles

Creating a Dropdown Menu using Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 04-Mar-2021 13:36:31

2K+ Views

Navigation is the most important part of any application, as it improves the user experience in an aesthetic way. Using Tkinter, we can create menus and submenus very efficiently.Tkinter has an inbuilt function to create menus and these can be invoked with another tkinter widget or window. Tkinter.Menu module provides ... Read More

Create a Date Picker Calendar in Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 04-Mar-2021 13:34:21

2K+ 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

Changing the Mouse Cursor in Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 04-Mar-2021 13:33:03

941 Views

Tkinter is a GUI-based Python library which is used to develop various types of functional and GUI-based applications. It provides lots of functions and methods that can be used to provide extensibility and various features while developing an application.In this article, we will see how we can change the mouse ... Read More

Average Speed Calculator using Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 04-Mar-2021 13:30:27

356 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

How to Plot Cluster using Clustermaps class in Matplotlib

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 23-Feb-2021 19:45:42

215 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

Check if an array is sorted and rotated in C++

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 23-Feb-2021 19:43:04

2K+ Views

Given an array of integers, the task is to check if the array is sorted (increasing order) and rotated after some number of position or not.For ExampleInput-1:N = [7, 8, 9, 4, 5, 6]Output:TrueExplanation: Since the given array is in increasing order and the elements after the 3rd position are rotated, ... Read More

C++ Program to Check Whether a given Binary Tree is a Full Binary Tree or not

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 23-Feb-2021 19:41:10

1K+ 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

C++ Program to find the smallest digit in a given number

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 23-Feb-2021 19:39:23

3K+ 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

Circle Sort in C++

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 23-Feb-2021 19:38:17

266 Views

Circle Sort is an interesting sorting algorithm to sort a given array of elements. The algorithm compares the elements of the array diametrically and once the elements in one part is sorted, then continuously sort the other end of the array diametrically.ExampleLet us visualize the circle sort for an array. ... Read More

Copy list with random Pointer in C++

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 23-Feb-2021 19:35:41

579 Views

A Linked List is a linear data structure in which each node is having two blocks such that one block contains the value or data of the node and the other block contains the address of the next field.Let us assume that we have a linked list such that each ... Read More

Advertisements