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 … 

 

How to generate fake data using the Faker module.

How to generate fake data I recently came across a useful package on PyPI for generating fake data called Faker. Faker can generate all sorts of fake data such as names, placeholder lorem ipsum text, addresses and credit card numbers to name a few things.It can be used to populate a database, anonymise data pulled … 

 

How to transfer files over a network using Python

I recently had to transfer a couple of files from a desktop computer to my phone. Doing this is easy when you have a USB cable in hand, unfortunately I didn’t have a USB cable with me when I needed to transfer the files. The desktop that had the files I needed did not have … 

 

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 … 

 

Recommended resources for intermediate developers

In a previous article, I discussed resources that I recommend for beginners. In this post, I’ll cover a few intermediate Python books and websites. Python 201 by Michael Driscoll The first book in the list is Python 201 by Michael Driscoll. This is the book to read if you already know the basics of Python …