TomasBar
unread,Mar 21, 2013, 11:51:31 AM3/21/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to toscawidge...@googlegroups.com
Hello,
I have defined an image button in a form thus:
image_button=twf.ImageButton(modname = 'tw2.forms', filename = 'static/info.png',alt='Info')
Whenever it gets clicked, I get the following error message:
keywords must be strings
I have tried to define the attributes like this instead:
image_button=twf.ImageButton(attrs={'modname' : 'tw2.forms', 'filename' : 'static/info.png','alt':'Info'})
But then I get the following error message:
ParameterError: Either 'link' or 'filename' must be specified
Many thanks for any help.
Tomas