Re: [pysystray-users] @systray.threaded Error when running sample.py
Status: Beta
Brought to you by:
essiene
From: Essien I. E. <es...@da...> - 2006-05-29 17:57:12
|
Hi, Sorry for replying late... just came back from a loooong weekend (public holiday here :D) Sajjad Hussain wrote: > Hi everyone, > > I have just installed systray-0.6.1.win32.exe on my > PythonWin 2.3.3. I downloaded > pysystray-sample-0.6.1.zip, unzipped it and tried > running sample.py. I am getting this error: > > [/cygdrive/c/design/Miscellaneous/ > Taskbar/pysystray-sample-0.6.1]: python sample.py > > File "sample.py", line 17 > @systray.threaded > ^ > SyntaxError: invalid syntax > Hmmm... it seems Python 2.3 doesn't support decorators (that's the syntax for decorators)? You should use Python 2.4 or newer. Any reason you're using 2.3? Cheers, Essien |