Tag Archive: python


Some days ago I was writing a DLL’s wrapper in ctypes and I came across of this typedef in the header file:

typedef struct _FILEHandle *FILEHandle;

To translate this definition into ctypes is pretty straight-forward (if you already know the solution :-) ).
View full article »

For my next project I need to serialise a list of classes using the technology which fits those requirements:

  • ninimum code to serialise/unserialise
  • minmum file size when compressed

As you can see the speed for read/write the serialised data is not a requirement but the size of the compressed file is the most important prerequisite.

View full article »


How to setup and compile the latest source code of PySide under Mac OS X
View full article »

To pass a Win32 window handler from a PySide object to a win32gui.GetDC() method is not so simple as with PyQt4 or wxPython.
View full article »

In this post I’ll show an updated version of the SWIG tutorial to build a Python module on top of a C library which works under Mac OS X.

View full article »


Why do recursive calls when you can do the same thing without it ? Use a recursive function makes the code clear but can be inefficient and soon or later you will hit the stack limit.

View full article »

Testing Qt code with the Python unittest module is simple as ever.

View full article »

It’s available a new version of wxScheduler. This version is only a bug-fix release.

View full article »

Time Machine is a powerful solution to backup, restore or move your Mac OS X installation to another machine or just after a full reinstall of the operating system. The restore system is smart enough to put all your applications, profile files, and all other stuff which belong to you.

For some files and folders (for example MacPorts installation and XCode folder) the restore process, to be safe, renames that files or folder appending a (from old mac) string, wasting hard drive space.

View full article »

In this post I’ll show you a simple event dispatcher implementation in Python. Every big UI frameworks can play with events an listener without reinvent the wheel but sometimes you need a very simple way to dispatch and receive events in you application without involve in megabytes of an external framework.

View full article »