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.
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.
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.
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.
Python Script to read a large text file character by character without loading the entire text file in memory.
Python script to check if given JSON data or JSON string is in valid JSON format.
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 is a very powerful feature of Python to quickly extract slices of data from lists and strings in either forward or reverse direction.
The most readble and simplest way in Python to check if a given value exists in any of the multiple variables.
Python Code snippet to convert a dictionary or a list of dictionaries into a valid XML string.
Pretty printing makes a json file visually appealing and easy to edit. If you have a JSON file...