TemplateScreenlet from screenlets.org does not work on Ubuntu Hardy?
I'm new to Screenlet development, and Python, but I'm trying to take the TemplateScreenlet from screenlets.org and make something simple.
The Template itself doesn't work -- complains that it is unable to load the 'default' theme.
When I modify to remove theme references, it complains that there is no self.draw_text function ... confused!
The start of the constructor, showing theming (hopefully) switched off:
# constructor
def __init__ (self, **keyword_args):
#call super (width/height MUST match the size of graphics in the theme)
screenlets.
uses_
# set theme
#self.theme_name = "default"
# add option group
The on_draw function, which complains that draw_text doesn't exist:
def on_draw (self, ctx):
"""In here we draw"""
# if theme is loaded
#if self.theme:
# set scale rel. to scale-attribute
ctx.scale(
ctx.set_
#if self.hover:
#self.
#self.
# TEST: render example-bg into context (either PNG or SVG)
#self.
ctx.set_
self.
self.
self.
#self.
self.
# render svg-file
#self.
# render png-file
#ctx.
ctx.paint()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Screenlets Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Glenn J. Mason
- Solved:
- Last query:
- Last reply: