** 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/701194

Title:
  LinuxEstoniaStatsScreenlet crash on TypeError: integer argument
  expected, got float

Status in Screenlets — individual widgets development:
  Fix Released

Bug description:
  LinuxEstoniaStatsScreenlet crash on startup.
  Ubuntu natty
  Screenlets version : 0.1.3~bzr592+20110109213652~natty1

  REGISTER screenlet: LinuxEstoniaStatsScreenlet
  True
  Traceback (most recent call last):
    File 
"/usr/share/screenlets/screenlets-pack-all/LinuxEstoniaStats/LinuxEstoniaStatsScreenlet.py",
 line 466, in <module>
      screenlets.session.create_session(LinuxEstoniaStatsScreenlet, 
threading=True)
    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/LinuxEstoniaStats/LinuxEstoniaStatsScreenlet.py",
 line 98, in __init__
      self.theme_name = "default"
    File 
"/usr/share/screenlets/screenlets-pack-all/LinuxEstoniaStats/LinuxEstoniaStatsScreenlet.py",
 line 108, 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/LinuxEstoniaStats/LinuxEstoniaStatsScreenlet.py",
 line 220, in on_draw_shape
      self.on_draw(ctx)
    File 
"/usr/share/screenlets/screenlets-pack-all/LinuxEstoniaStats/LinuxEstoniaStatsScreenlet.py",
 line 215, in on_draw
      self.draw_text2(ctx,"Hangin veebist 
andmeid...",47*self.scale,454*self.scale,"Monospace Bold 
"+str(10*self.scale),1,1,1,1)
    File 
"/usr/share/screenlets/screenlets-pack-all/LinuxEstoniaStats/LinuxEstoniaStatsScreenlet.py",
 line 230, in draw_text2
      self.draw_text(ctx, value, x+1, y+1, font, 0.5, 0.5, 0.5, 0.5)
    File 
"/usr/share/screenlets/screenlets-pack-all/LinuxEstoniaStats/LinuxEstoniaStatsScreenlet.py",
 line 242, in draw_text
      self.p_layout.set_width(280 * 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/701194/+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

Reply via email to