[PyKDE] Autorefresh in file manager
Reza Salari
resal81 at yahoo.com
Thu Nov 2 18:47:07 GMT 2006
Hi Eron
Thanks. After some unsuccessful tries with KDirWatch,
I used a QTimer for qt3 version of my program. For
qt4, I couldn't found such class (QFilesystemWatcher)
in qt4.1 documentation. Is seems this class is only
for qt4.2 . Am I right?
And just a matter of curiosity, I used KDirWatch in
this way :
from kio import KDirWatch
....
self.mydir=KDirWatch(self)
self.mydir.addDir("self.workdir")
self.connect(self.mydir,SIGNAL("dirty()"),self.updateIconView)
but it crashed. Actually I used some C++ code as
template, but it seems the C++ version of KDirWatch is
a little different from python version, so I tried to
implement it as above. How should I use it?
____________________________________________________________________________________
Everyone is raving about the all-new Yahoo! Mail
(http://advision.webevents.yahoo.com/mailbeta/)
More information about the PyQt
mailing list