Python GUI Development with GTK+ — Grid

The GTK+ Grid is a container that arranges its children into rows and columns in the same way data in an Excel spreadsheet is laid out. The children can take up as many rows and columns as they need to. The GTK+ Grid mainly uses two methods to add child elements to it: Gtk.Grid.attach() and … 

 

Python GUI development with GTK+ — Boxes

In this tutorial, I will discuss the GTK+ box and how to add widgets to it. GTK+ applications with only one button in them are not very useful. When creating applications, you’ll want to add more than one widget inside a window. Containers allow us to put more than one widget into a window. The … 

 

Python GUI Development with GTK+ — Setting Properties

Setting properties Widgets have properties, properties describe characteristics of the widget such as the widget’s colour, it’s size, angle or the text displayed in it. In this article, I will show you the three methods available to you to change the properties of widgets. The first method involves setting the properties when creating the widget … 

 

Getting started with GUI programming using GTK+

GTK+ stands for GIMP Toolkit. It is a framework or set of tools used to develop applications with Graphical User Interfaces. GTK+ is available in the major Operating Systems, namely Windows, Linux and Mac. GTK+ is free software licensed under a GNU LGPL 2.1 license which basically means that anyone is free to use the … 

 

Open Source licenses explained

A software license grants specific permissions for others to use your work. Licenses allow your source code to be used under defined terms and conditions and they also protect the licensor( you, owner of the code) from litigation. There are a number of Open Source software licenses to choose from and the differences between these … 

 

An alternative Python interpreter.

Running code in the default Python interpreter is great as long as the code you write is short and you don’t make mistakes while typing the code in. After a couple of lines and multiple levels of indentation, using the interpreter becomes difficult. bpython is a good alternative to consider. bpython is a fancy interface … 

 

String Manipulation part 2: Regular Expressions

Regular Expressions in Python Regular Expressions (also known as REs, regexes or regex patterns) are a small and highly specialised programming language used to search for patterns in text strings. Regular Expressions allow you to specify patterns or rules that you want to match in a string. The patterns you define can be for matching: … 

 

String manipulation in Python.

Strings are one of the most fundamental data types. Strings in Python can be expressed in a number of ways. The most common way to create a new string is to enclose text in single or double quotes. Strings in Python are immutable, which means that they cannot be modified once they are created. That …