Can you give us a little more detail?

When you say it's "not working", do you mean:
1) The widget isn't being included right?
2) The CSS isn't appearing in the rendered page?
3) You're getting a Python traceback?

From what I can see, it looks like you're on the right track, as long as the css filename and the path to it are correct in CSSLink...

Kevin H.

On 9/14/06, Ian Wilson <[EMAIL PROTECTED]> wrote:

Hello,
  I am trying to include CSS with my widget and its not working.  I
have tried guessing around and trying to find useful examples.  I have
something like this:

class Menu(Widget):
  template = """
  ...
  """
  css = [CSSLink('widgets/static/css/', name="menu.css")]
  params = ['submenus']
  params_doc = {'submenus': "A list of submenus of the form
[dict(title=, items=)]"}
  submenus = []

How do I link to this file /static/widgets/css/menu.css ?

CSSLink('widgets/static/css/', name="menu.css") ?

Thanks,
  -Ian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to