** Changed in: indiv-screenlets
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/701195
Title:
LinuxSerbiaStatsScreenlet crash on TypeError: integer argument
expected, got float
Status in Screenlets — individual widgets development:
Fix Released
Bug description:
LinuxSerbiaStatsScreenlet crash on startup.
Ubuntu natty
Screenlets version : 0.1.3~bzr592+20110109213652~natty1
Screenlets-pack-all: 0.0.1~bzr738+20110109231342~natty1
REGISTER screenlet: LinuxSerbiaStatsScreenlet
True
Traceback (most recent call last):
File
"/usr/share/screenlets/screenlets-pack-all/LinuxSerbiaStats/LinuxSerbiaStatsScreenlet.py",
line 261, in <module>
screenlets.session.create_session(LinuxSerbiaStatsScreenlet)
File "/usr/lib/pymodules/python2.7/screenlets/session.py", line 471, in
create_session
session.start()
File "/usr/lib/pymodules/python2.7/screenlets/session.py", line 245, in
start
sl = self.screenlet(session=self, id=self.__get_next_id())
File
"/usr/share/screenlets/screenlets-pack-all/LinuxSerbiaStats/LinuxSerbiaStatsScreenlet.py",
line 54, in __init__
self.theme_name = "default"
File
"/usr/share/screenlets/screenlets-pack-all/LinuxSerbiaStats/LinuxSerbiaStatsScreenlet.py",
line 74, in __setattr__
screenlets.Screenlet.__setattr__(self, name, value)
File "/usr/lib/pymodules/python2.7/screenlets/__init__.py", line 916, in
__setattr__
self.update_shape()
File "/usr/lib/pymodules/python2.7/screenlets/__init__.py", line 1569, in
update_shape
except: self.on_draw_shape(ctx) # if error on on_draw use standard
shape method
File
"/usr/share/screenlets/screenlets-pack-all/LinuxSerbiaStats/LinuxSerbiaStatsScreenlet.py",
line 141, in on_draw_shape
self.on_draw(ctx)
File
"/usr/share/screenlets/screenlets-pack-all/LinuxSerbiaStats/LinuxSerbiaStatsScreenlet.py",
line 95, in on_draw
self.draw_text(ctx,"Top distros:",7*self.scale,135*self.scale,"Sans Bold
Italic "+str(13*self.scale),1,1,1,1)
File
"/usr/share/screenlets/screenlets-pack-all/LinuxSerbiaStats/LinuxSerbiaStatsScreenlet.py",
line 180, in draw_text
self.p_layout.set_width(220 * self.scale*pango.SCALE)
TypeError: integer argument expected, got float
To manage notifications about this bug go to:
https://bugs.launchpad.net/indiv-screenlets/+bug/701195/+subscriptions
--
Mailing list: https://launchpad.net/~indiv-screenlets-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~indiv-screenlets-dev
More help : https://help.launchpad.net/ListHelp