Re: [PyQt] Problem with QFileSystemWatcher

2010-12-16 Thread Zoltan Szalai
You can get rid of Qt messages by passing your custom message handler to qInstallMsgHandler, at least I can use it succesfully to redirect them. bests Zoltan On 2010.12.13. 14:32, Hans-Peter Jansen wrote: On Monday 13 December 2010, 13:17:20 NARCISO, Rui wrote: Thanks Pete for both

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-13 Thread NARCISO, Rui
Objet : Re: [PyQt] Problem with QFileSystemWatcher On 10/12/10 18:10, Hans-Peter Jansen wrote: Dear Rui, On Friday 10 December 2010, 11:08:50 NARCISO, Rui wrote: When I use absolute paths (os.path.abspath) or real paths (os.path.realpath) or even relative paths (../../toto) it doesn't work

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-13 Thread Hans-Peter Jansen
-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] De la part de Baz Walter Envoyé : vendredi 10 décembre 2010 19:43 À : Hans-Peter Jansen Cc : pyqt@riverbankcomputing.com Objet : Re: [PyQt] Problem with QFileSystemWatcher On 10/12/10 18:10, Hans-Peter Jansen wrote

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-13 Thread NARCISO, Rui
Jansen [mailto:h...@urpla.net] Envoyé : lundi 13 décembre 2010 12:21 À : NARCISO, Rui Cc : Baz Walter; pyqt@riverbankcomputing.com Objet : Re: [PyQt] Problem with QFileSystemWatcher On Monday 13 December 2010, 11:50:05 NARCISO, Rui wrote: Brilliant guys. This indeed solved my problem

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-13 Thread Hans-Peter Jansen
On Monday 13 December 2010, 13:17:20 NARCISO, Rui wrote: Thanks Pete for both suggestions. However, redirecting the stderr to a file is a bit too much !!! Hehe, I told you so.. Having looked into the code, the message seems to originate from a qDebug but I don't understand why that one gets

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread NARCISO, Rui
a file elsewhere, it simply does nothing ... Why would this happen ? -Message d'origine- De : Baz Walter [mailto:baz...@ftml.net] Envoyé : jeudi 9 décembre 2010 17:45 À : NARCISO, Rui Cc : PyQt mailing list Objet : Re: [PyQt] Problem with QFileSystemWatcher On 09/12/10 12:26, NARCISO

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread Hans Meine
Am Freitag 10 Dezember 2010, 10:36:22 schrieb NARCISO, Rui: In fact I had already tried that syntax without any success. Further tests showed that in fact I am able to watch a file if it's in the same folder as my application, ie, if the path that I add to the watcher is just the name of the

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread NARCISO, Rui
@riverbankcomputing.com Objet : Re: [PyQt] Problem with QFileSystemWatcher Am Freitag 10 Dezember 2010, 10:36:22 schrieb NARCISO, Rui: In fact I had already tried that syntax without any success. Further tests showed that in fact I am able to watch a file if it's in the same folder as my application, ie

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread Baz Walter
On 10/12/10 10:08, NARCISO, Rui wrote: When I use absolute paths (os.path.abspath) or real paths (os.path.realpath) or even relative paths (../../toto) it doesn't work. It only works when I use only the file name. I don't think permissions are the problem because I tried the with the same

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread Hans-Peter Jansen
Dear Rui, On Friday 10 December 2010, 11:08:50 NARCISO, Rui wrote: When I use absolute paths (os.path.abspath) or real paths (os.path.realpath) or even relative paths (../../toto) it doesn't work. It only works when I use only the file name. Works fine here with absolute paths. Consequently,

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread Baz Walter
On 10/12/10 18:10, Hans-Peter Jansen wrote: Dear Rui, On Friday 10 December 2010, 11:08:50 NARCISO, Rui wrote: When I use absolute paths (os.path.abspath) or real paths (os.path.realpath) or even relative paths (../../toto) it doesn't work. It only works when I use only the file name. Works

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-10 Thread Andreas Pakulat
On 10.12.10 19:10:36, Hans-Peter Jansen wrote: On Friday 10 December 2010, 11:08:50 NARCISO, Rui wrote: I don't think permissions are the problem because I tried the with the same file in the current folder and then in the parent folder and it works for the first and it doesn't for the

[PyQt] Problem with QFileSystemWatcher

2010-12-09 Thread NARCISO, Rui
Hi all I can't seem to be able to make QFileSYstemWatcher work with a file (to see if it's contents change). At the end of this mail you'll find a minimum example that doesn't worked. I tried several connections with different syntaxes but nothing works. The versions I have: Linux Red

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-09 Thread Baz Walter
On 09/12/10 12:26, NARCISO, Rui wrote: Hi all I can't seem to be able to make QFileSYstemWatcher work with a file (to see if it's contents change). At the end of this mail you'll find a minimum example that doesn't worked. I tried several connections with different syntaxes but nothing works.