Archive for the ‘Linux’ Category

PyGTK: Get GNOME icon associated with a file

Tuesday, November 18th, 2008

If in your application you need to display a list of files/folders it would be nice to display icons near filenames.
(more…)

PyGTK: How to display a systray icon from a cronjob

Thursday, November 6th, 2008

It is nice to give some user feedback when someting happen in a background application. For example when a cronjob is running it would be nice to show a systray icon.
(more…)

PyGTK: Allow only one instance of your application (2)

Tuesday, November 4th, 2008

In the post “PyGTK: Allow only one instance of your application” I presented a method to raise a PyGTK application’s window, but the solution was not perfect.
(more…)

PyGTK: Allow only one instance of your application

Monday, November 3rd, 2008

In the post “Python: Allow only one instance of your application” I presented a method that works great for non GUI applications. It work’s fine for GUI applications too but if the application is already running the second instance will just quit. What if the application instance’s window is hidden by other window ?
(more…)

Python: Allow only one instance of your application

Thursday, October 30th, 2008

Multitasking operating systems (all modern operating systems) allow us to execute an applications then once at the same time and this is a great feature. But, in some special cases, you may want to allow only one instance application.

(more…)

Linux: How to remove old revisions in MoinMoin Wiki

Thursday, October 9th, 2008

MoinMoin Wiki is a nice, easy to use WikiEngine written in python. Pages (all revisions) and attachment are stored on the file system. In some cases keeping all revisions of a page can be a waste of disk space. In this cases we need a way remove old revisions.

(more…)