ComboBox Widget in Python Tkinter

Harshit Sachan
Updated on 20-Apr-2023 13:01:56

20K+ Views

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

Command Line File Downloader in Python

Harshit Sachan
Updated on 20-Apr-2023 12:59:35

751 Views

Python is a powerful programming language that provides many tools and libraries for different applications. We can also create a command line file downloader in python. Command line downloader is used to download files from internet manually through command line interface or your terminal without using browser. To create a command line file downloader in python we need two libraries, they are argparse and required. We should have basic knowledge of terminal or command line interface and python language before we start building this application. Installation Before we continue, we need to have the above mentioned libraries in our ... Read More

Connect New Point to Previous Point on Image with Straight Line in OpenCV Python

Harshit Sachan
Updated on 20-Apr-2023 12:58:02

1K+ Views

We might have to draw lines on an image for various purposes like drawing, scribbling, tracking the movements of a point etc. so it is necessary to know how to connect 2 points in image processing. OpenCV is a library of programming functions primarily for real-time computer vision. The library is cross-platform and licensed as free and open source software under the Apache License. In this article, we will learn how we can connect a new point to the previous point on an image with a straight line using OpenCV-Python. Connecting a Points on with the Previous One ... Read More

Convert BGR and RGB with Python and OpenCV

Harshit Sachan
Updated on 20-Apr-2023 12:56:07

12K+ Views

OpenCV is a library of programming functions primarily for real-time computer vision. The library is cross-platform and licensed as free and open source software under the Apache License. It is written in C++ and has Python bindings that make it easy to use in Python applications. In this article we are going to learn how to Convert BGR and RGB with python and OpenCV. Before proceeding further first of all let us understand BGR and RGB. What are BGR and RGB RGB and BGR are both color models used to represent colors in digital images. However, the main difference between ... Read More

Package a Command Line Python Script

Harshit Sachan
Updated on 20-Apr-2023 12:53:02

3K+ Views

Python is a powerful programming language that has various applications in the world of software engineering and is very widely used. We can create various types of applications using Python. We can also make a CLI script in Python which can be used to automate many tasks. We can also then package the CLI scipt. For these scripts to be used by other we need to package and distribute these applications. So we must know how we can package a command line python script. This article will guide you through all the steps needed to package a python script and ... Read More

Isomorphism in N-ary Trees

Tapas Kumar Ghosh
Updated on 20-Apr-2023 12:42:19

527 Views

Isomorphism is defined as two trees either having identical or mirror structures. In the case of mirror structure, the left node data will always match the right node. For example, we will take a number nearest to the mirror and see what its reverse would be, that is the real concept of isomorphism. In this article, we are going to check whether two different binary trees are isomorphic or not. Let’s take an example of Isomorphism in N-ary Trees − Note that, L represents as left node whereas R represents as Right node Mirror structure of P and Q ... Read More

Binary Space Partitioning

Tapas Kumar Ghosh
Updated on 20-Apr-2023 12:28:26

6K+ Views

A binary space partition is a data structure used in computer graphics and algorithmic geometry to divide a space into smaller parts. BSP was developed in the environment of 3D computer graphics. BSP includes applications such as operation with geometrical shapes, geospatial, and ray tracing. It is a two-step procedure Step 1 − Creation of BSP tree. Step 2 − Display a tree. Creation of BSP tree Visual Representation of Binary Space Partitioning The binary Space Partitioning algorithm recursively divides the space into two half-spaces. So keep in account that there is a dividing region in every polygon figure. ... Read More

Command Line Scripts in Python Packaging

Harshit Sachan
Updated on 20-Apr-2023 12:27:10

376 Views

Python is a very popular and powerful programming language which is used to create a large number of applications with different purpose. A command line interface script or CLI script is a script that performs a specific task which is scripted, when it is executed through command line and it is used to automate so many tasks. A CLI script is very useful for developers. We can also create these CLI scripts in python. After creating a CLI script we can also package it and share it with other programmers to use. Therefore, we must know how to package ... Read More

Check Score of Given Binary String

Tapas Kumar Ghosh
Updated on 20-Apr-2023 12:25:58

315 Views

The sequence of bytes is called a binary string and it holds the binary value. A binary score is normally presented on a range from 0 to 1 where 1 is reserved for the perfect model. In the given binary string, If the element is found to be 1 then it will calculate as the score and increment the count sum. Let’s take an example of a binary score − The given binary string is 1011010. In the above figure, the number 1 is present in the index- 0, 2, 3, and 5. Therefore, the total score is 4 ... Read More

Length of Longest Substring Without Palindrome

Tapas Kumar Ghosh
Updated on 20-Apr-2023 12:22:04

378 Views

In C++, we have predefined function max() that will be used for finding any longest substring that does contain any palindrome. A palindrome string is a group of characters that remains the same even after reversing. Let’s take an example of a palindrome string to make the longest non-palindrome substring. The string malayalam itself is a palindrome but we need to identify the longest non-palindrome substring. When we change the string malayalam( length=9 ) to alayalam then we get the longest non-palindrome substring length i.e, 8. The string synapse is a non-palindrome string and its length is 7. ... Read More

Advertisements