Hey,
Working on a new desklet but it's giving me this error:
Traceback (most recent call last):
File "deskicon.py", line 173, in ?
Events(dirname(__file__)).pause()
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 228, in pause
posix_signal.pause()
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 188, in _fire_event
self._alarm()
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 296, in _alarm
timeout=self.alarm()
File "deskicon.py", line 142, in alarm
self._display()
File "deskicon.py", line 156, in _display
adesklets.window_resize(self.x, self.y)
File "/usr/lib/python2.4/site-packages/adesklets/commands.py", line 1437, in window_resize
return comm.out()
File "/usr/lib/python2.4/site-packages/adesklets/commands_handler.py", line 103, in out
raise ADESKLETSError(4,message)
adesklets.error_handler.ADESKLETSError: adesklets command error - did not resize window
The desklet is sort of modular, one module works fine but
another doesn't, hard to explain. Each module (class) must
have a dimensions() method that returns X and Y values to
pass to adesklets.window_resize(). If I print these values I
can't see anything wrong with them, the desklet appears but
after one second it dies with that error, I'm assuming the
second run of Events._display(). I'm guessing the cause of
the error is somewhere in my mount_icon.update() but I can't
see where it is. I stole a little bit of code from mounter, I
haven't put much effort into the else at line 45 of
mount_icon.py because my testing partition is mounted and I
want to get it to a working stage before I fine tune it too
much.
A second pair of eyes would be appreciated, I've been staring
at this for ages and I can't find the problem, exec_icon
works great so I don't think the problem stems from any code
in deskicon.py. I've put a tarball of the code
here,
if somebody could take a look I'd appreciate it :)