Python
Inside Python subprocess communication


Sometimes, it's really hard to understand what happens inside a function or even a whole module of Python's Standard library. For example, the subprocess module contains a very tricky Popep class. I tried to use the the module to communicate with a MATLAB subprocess shell (e.g. send MATLAB commands to subprocess and read the output). Unfortunately I failed and was just able to pass a MATLAB script via command-line arguments. Yet, I learnt much about Popen.communicate() method and I'd like to share this knowledge with you.

Comments [2]
Python classes: Dynamic properties


Python never stops surprising me. While doing my master IT project, I was looking for a way to add dynamic properties to classes (we're speaking of new-style classes of course!). I did a little research and here are the results:

Comments [2]
Beginner's guide to creating a GNOME applet with Python (Part II)


It's been a while since I wrote the first [1] part of this guide. I'm happy to introduce you the second part of the tutorial. This part continues the story about applet-only techniques. Even if you're skilled in PyGTK, you're adviced to read this part.

Comments [9]
Python and config files routine


Few days ago I wrote a helper class to deal with 'config' files. I used Python's power to seal config files handling routine to generic, type-independend, easy-to-understand way.

Comments [0]
Beginner's guide to creating a GNOME applet with Python (Part I)


Programming is an art.
To be more specific, it's an everlasting art. There is no program that could completely satisfy a user. And I doubt that there is a program that could completely satisfy a programmer.

I spend hours in front of my computer. Of course that is very unhealthy for the eyes. I wanted to create a simple reminder applet - an eyes icon that changes to "bloody" eyes - indicating that it's time to relax.

This was my first GNOME applet, my first GTK and more or less serious Python experience and I'd like too share it with everyone, who deals with his or her first GNOME applet.

I hope, this tutorial will help you.

Comments [0]