Sirtaj Singh Kang | 9 May 06:31

Poor man's LWP with PyQt

Hi all,

I've been trying to find the path of least resistance to using  
cooperative multitasking in PyQt apps.

There are a bunch of different options out there, including Twisted  
(The initial inqternet.py Qt support I wrote became the basis of the  
current Qt reactor, and it works great if you are using Twisted) and  
Kamaelia/Axon (I had a stab at implementing Qt event loop support for  
that - available here: http://sirtaj.net/projects/axonqt.py). However  
most of these approaches require you to commit to frameworks that are  
likely to shape the implementation of the rest of your app.

The two recommended ways to doing this sort of thing in Qt/C++ are:

1) use QTimer with a timeout of 0 to call some function.

2) In a long-running loop, call processEvents to allow other events to  
be processed to keep the GUI interactive.

...and that's all she wrote, since C++ doesn't really allow many  
options besides multithreading.

With the yield keyword, however, we can get the same kind of  
cooperative multitasking that we had back in 1991 with Visual Basic  
1.0 (yay!). This is the approach that Axon uses. Using the QTimer  
method above, a handful of lines of code gets us this in PyQt without  
having to use a larger framework:

---------------------------------------------------------------
(Continue reading)

Akarsh Simha | 18 May 06:22
Picon
Gravatar

Fwd: [IMPORTANT] Preparing for KDE 4.3

Hi

There seem to be some Indian languages that need translation love.

Please see the forwarded message in case you missed it on the kde-i18n lists.

Regards
Akarsh

---------- Forwarded message ----------
From: Albert Astals Cid <aacid@...>
Date: Sun, 17 May 2009 12:23:38 +0200
Subject: [IMPORTANT] Preparing for KDE 4.3
To: KDE i18n-doc <kde-i18n-doc@...>

Hi all, since May 5th we are in message freeze that means that messages should
not change much (unless we find untranslatable messages) in all KDE released
modules.

As always http://l10n.kde.org/stats/gui/trunk-kde4/essential/ defines if your
language is to be released with KDE 4.3 or not.

According to http://techbase.kde.org/Schedules/KDE4/4.3_Release_Schedule the
KDE 4.3 tag day is 21st of July (two months from now) so you should have
things commited by 20th or earlier so scripty has the chance to merge .desktop
files back.

At the moment there is one language (hne) that meets the release criteria but
has not asked to be included. Does the Chhattisgarhi team want to be included
in KDE 4.3?
(Continue reading)


Gmane