From: Chad C. <fla...@ya...> - 2004-11-10 04:30:31
|
I am making a new component that I have figured out from looking at the source and stuff and resolving error messages as they come. However I'm having a difficulty. I am not able to get the resource to save the size but I cannot figure out why because I have the Spec set up right from what I understand. class ScrolledImageSpec(widget.WidgetSpec): def __init__( self ) : events = [] attributes = { 'file':{'presence':'optional','default':None}, 'size' : { 'presence' : 'optional', 'default' : [ 50, 50 ] } } widget.WidgetSpec.__init__( self, 'ScrolledImage', 'Widget' , events, attributes ) I do not see that I must implement a method to get this to work. But perhaps I'm wrong. __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com |