<s> from atom . api import Unicode , Int <EOL> from enaml . core . declarative import d_ <EOL> from html_object import HTMLObject <EOL> from lxml . html import builder as E <EOL> class Slider ( HTMLObject ) : <EOL> tag = E . INPUT <EOL> text = d_ ( Unicode ( ) ) <EOL> id = d_ ( Unicode ( ) ) <EOL> value = d_ ( Int ( ) ) <EOL> min = d_ ( Int ( ) ) <EOL> max = d_ ( Int ( ) ) <EOL> def initialize ( self ) : <EOL> super ( Slider , self ) . initialize ( ) <EOL> def buildHTML ( self , * args ) : <EOL> self . addTags ( ) <EOL> self . addText ( self . text ) <EOL> self . addAttributes ( id = self . id , type = "<STR_LIT>" , value = str ( self . value ) , min = str ( self . min ) , max = str ( self . max ) ) <EOL> return super ( Slider , self ) . buildHTML ( * args ) </s>
