Found 34494 Articles for Programming

How to get grid information from pressed Button in tkinter?

Gaurav Leekha
Updated on 15-Feb-2024 16:31:38

214 Views

Organizing widgets in a grid layout is an important aspect of GUI design using Tkinter. In this tutorial, we will explain how you can obtain the row and column indices of widgets within a grid layout. What is Tkinter Grid Layout? Tkinter's grid geometry manager is widely used for arranging widgets in rows and columns. When widgets are placed using the grid method, they are assigned specific row and column indices. To understand how to retrieve this information dynamically, we'll first delve into the basics of grid layout in Tkinter. Example import tkinter as tk # Create the ... Read More

Overview of the C++ Language Binding in the ODMG Standard

sudhir sharma
Updated on 22-Jan-2024 16:15:03

336 Views

Introduction Diving into the world of data management and modeling can be a complex task, especially when dealing with standards like the Object Data Management Group (ODMG). Did you know that ODMG provides an essential standard for object-oriented database systems, including a C++ language binding? This article will guide you through an easy-to-understand overview of this very aspect of ODMG, highlighting its key features such as ODL constructs and transactions. Overview of the ODMG Standard The ODMG standard, developed by the Object Data Management Group (ODMG), provides a framework for managing object-oriented databases. It includes the Object Definition Language (ODL) ... Read More

Primitive data type vs. Object data type in Java with Examples

Rudradev Das
Updated on 17-Jun-2024 19:17:44

652 Views

In a Java environment, every variable contains with some data types, which specify the value and type of a sorted identifier. There are two categories − Primitive Data type Non-Primitive Data type or Object data type The primitive data types are some predefined data types with some specific size and type. This method has some standard values with the types know as byte, short, int, long, float, double, char and boolean. When we want to run a primitive structure, then it stores the data in a stack and assign a value for the process. On the other hand, ... Read More

Convert byte[] array to File using Java

Rudradev Das
Updated on 17-Jun-2024 19:27:27

2K+ Views

The file class is a representation of directory path name in Java with different formats on different platforms. The file class contains the method of different path name which is responsible for deleting and renaming files by using the new directories. It is an abstract class in a string formation which can be either absolute or relative. Algorithm to of Convert Byte[ ] Array to File In this possible algorithm, we are going to show you how to perform a conversion process on a byte() array node to make it a file. By using this algorithm, we are going to ... Read More

Convert ArrayList to LinkedHashMap in Java

Rudradev Das
Updated on 17-Jun-2024 22:08:36

621 Views

The LinkedHashMap Class is an one type of Hash Map which enables an user to maintain a systematic cronology of the elements present into it. This feature also provides the method of insertion, search and deletion in a quick manner. When we need to convert an array list to a linked hash map, we need to set a key value for this and it reflects as the index of an array list. In terms of the process of the iteration and the data sorting, array list and linked hash map; both are same in nature. Here is a general example ... Read More

Convert ArrayList to HashMap in Java

Rudradev Das
Updated on 17-Jun-2024 22:45:04

1K+ Views

In Java the List is a child interface class which can also represents a Collection set. It is an ordered collection set, consists of the objects where duplicate values can be sorted also. Java array list is a collection framework as it presents into the java.util package and provides the dyanamic array elements in Java. For the ArrayList we do not have to mention the size of the list. On the other hand, the HashMap is a Java collection which can be found as a package in java.util. It contains the data values as a pair of (Key, Value).Basically, there ... Read More

Proxy Design Pattern for Object Communication in Python

Devesh Chauhan
Updated on 19-Jan-2024 10:34:24

58 Views

Classes and objects are the fundamental elements of programming. These entities construct the entire logic and controls the access to different parts of the code. There could be a situation where we are restricted by the complexity of the operation and therefore, we require an efficient and optimized solution. The Proxy Design Pattern is one such powerful technique of creating a proxy class instead of an instance of the real class. In this article, we will be exploring the basics of this technique and understand how we can use it to solve problems involving huge amount of data. Let’s begin ... Read More

Protected variable in Python

Devesh Chauhan
Updated on 19-Jan-2024 10:26:25

333 Views

In programming the concept of protected variable is used to create an access control system. In this system, we establish a hierarchy or level of access control. This concept solidifies the basis of object-oriented programming. The technical meaning of a protected variable remains the same but the syntax and behaviour may vary between different programming languages. Python follows the conventional logic of accessing and manipulating the attributes and methods, but the representation and degree of enforcement of access control is a little different. Understanding Protected Variables in Python Protected variables in python manages the internal use of the attributes and ... Read More

Number of palindromic subsequences of length k where k <= 3

Riya Kumari
Updated on 05-Jan-2024 16:11:39

204 Views

Palindromes are series of letters, numbers or characters which have same starting and ending point. Also, they are same when read from left to right and right to left. A subsequence of a string is a new string which is made by removing some of the characters from the original string without changing the relative order of the characters which are remaining. Suppose you are given a string of length N. You want to find palindromic subsequences of length K from the string. Note that value of K can be less than or equal to 3. In this article, we ... Read More

Number of palindromic paths in a matrix

Riya Kumari
Updated on 05-Jan-2024 16:10:04

131 Views

Palindromic pathways are very useful in solving various problems involving patterns and sequences. It can be used in finding correct path in a maze without reversing, palindromes in a sequence of letters, etc., It can also be used to identify symmetric patterns and structures. In this article, we will discuss about palindromic paths and ways to find such paths in a matrix using C++. Palindromes are series of letters, numbers or characters which have same starting and ending point. Also, they are same when read from left to right and right to left. A path in a matrix is a ... Read More

Previous 1 ... 4 5 6 7 8 ... 3450 Next
Advertisements