Code

Python Class Template example for GTK+ GUI Application built using Glade

Example Python Class Template to build GUI Applications designed using Glade Visual Builder for GTK+. Sample Python Class to write event handling code for GTK based GUI Apps.

How to left align text in a GTKLabel in Python?

Python script to left align text in GTKLabel. Python snippet to right align or top align or bottom align text in GTK Label. Horizontal or vertical aligning of GTK Label text in Python.

How to access GTK UI objects in a glade XML file in Python?

Python script to access GUI objects like GTK listbox, window, label, button, toolbar etc in a Glade XML file and link Python functions to GTK events or signals.

List all files in a directory in Python

Python script to list all files and sub-directories in a directory, or to list only files or only sub-folders in a folder, or files having a given extension.

List all collections in a MongoDB Database using PyMongo

Python script to list the names of all collections in a MongoDB database using PyMongo.

List all databases in MongoDB using PyMongo

Python script to list the names of all databases in MongoDB using PyMongo

How to read a large text file character by character in Python?

Python Script to read a large text file character by character without loading the entire text file in memory.

How to check if JSON string is valid in Python?

Python script to check if given JSON data or JSON string is in valid JSON format.

Extract adjacent JSON documents in a single line of a large text file in Python

Python Script to extract a large number of multiple neighboring JSON documents in a single line of huge text file, and write the extracted JSON documents to individual lines in an output file.

Slicing in Python to extract sub strings or sub lists in either direction

Slicing is a very powerful feature of Python to quickly extract slices of data from lists and strings in either forward or reverse direction.
FacebookLike
InstagramFollow
PinterestFollow
RSS FeedSubscribe
Sound CloudFollow
TwitterFollow
YoutubeSubscribe

Latest Articles

Sanskrit Lesson 4 – Word Creation Magic using Dhatus

Learn how easy it is to create new words in Sanskrit using root words called Dhatus. This simple process of Sanskrit grammar powers the entire language.

The Secret Role of Karma in Mahabharata

The seeds of Mahabharata were sown long back Duryodhana or Dhritarashtra were born. The story of Kaurvas and Pandavas is only the second half of the cycle of Karma. So what is the first half?

The Real Super Food is free and all around you

Are you looking for some super food that can keep you healthy and strong forever? Do you want to stay free from all illness and health issues?

Superstitions are pattern matching mistakes made by our Brain

Supersitions evolve when our brain links the wrong unrelated patterns as related. Science is finding additional patterns that validate or invalidate Supersition.

Popular Articles

Takshashila – World’s Oldest University

More than 2700 years back a huge university existed in that ancient India where over 10,500 students from all across the world came for...

Grahas are not Planets – Nava Graha is not the same as Nine Planets

The difference between Planets and Grahas. Why are Sun and Moon included in the list of Navagrahas? Isn't it true that Rahu and Ketu do not exist? What about Earth?

Place Value, not Zero is most important invention of ancient Indian Mathematicians

The most important contribution of ancient India to mathematics was not zero but the place value system or positional notation system.

The Sacred Secrets of Ganga

I am the shark among the fishes, and the Ganges among the rivers - Krishna in Bhagavadgita In his book Discovery of India, Jawaharlal Nehru...