*args and **kwargs explained.

If you have ever felt confused when you came across code that contains *args and **kwargs as function parameters, you’re not alone. This syntax is used specify that a function can be called with any number of arguments and It can be very confusing at first. In this article, I explain what *args and **kwargs … 

 

Using Python’s tempfile module

Recently at work, I had to write a tool that processes files uploaded by our tutorial writers. I needed to build something that could read multiple files, manipulate the data in the files and produce output files based on the results of manipulating the data. Each of the output files produced during the script’s execution … 

 

ZimboPy August 2018 Mentorship Week

ZimboPy Mentorship Week ZimboPy is an organisation made up of Python Developers in Harare, Zimbabwe that empowers Zimbabwean women and advances the cause of women in tech. They introduce women to programming through partnerships and mentorship programmes meant to equip them with skills modern developers should have. On August 13 – 14, ZimboPy held one … 

 

Django Indaba — Event debrief

On Saturday, June 30 2018 I attended Zimbabwe’s first Django Indaba. “Indaba” is a Nguni word which means “discussion”, “conference” or “matter” depending on the context. The Django Indaba is a community event for sharing information about web development in Python and open source technologies in general. The organisers of Django Indaba want to make … 

 

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 …