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.

Subscribe to HitXP Articles

To receive the latest updates, offers and special announcements.

Latest Articles

Rising pollution can cause Pandemics deadlier than Corona Virus

Rising pollution can expose ancient killer microbes that may cause pandemics more deadlier than Corona. Melting Ice Sheets can resurrect killer agents of the past.

Corona Virus, SARS – Why are new viruses increasingly originating from China?

The reason why new strains of deadly viruses are emerging from China. Viruses like coronavirus and SARS should be stopped from evolving and spreading to prevent another global pandemic.

Evolution of life – primitive cells, complex organisms, intelligence, what next after humans?

Evolution of life from primitive life forms to complex multi cellular organisms to intelligent human species - the advent of AI raises a natural question - What next after human?

The individual human is smart, but the human species is dumb

The smart individual human has to clean up the mess created by his dumb species. Species polluted the planet, individuals are cleaning it up.

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...