#NEWLINE# def __init__( self , master = None , orientation = 'horizontal' , min = 0 , max = 100 , width = 100 , height = 18 , doLabel = 1 , appearance = 'sunken' , fillColor = 'blue' , background = 'gray' , labelColor = 'yellow' , labelFont = 'Verdana' , labelText = '' , labelFormat = '%d%%' , value = 0 , bd = 2 ) : #NEWLINE# #INDENT# self . master = master #NEWLINE# self . orientation = orientation #NEWLINE# self . min = min #NEWLINE# self . max = max #NEWLINE# self . width = width #NEWLINE# self . height = height #NEWLINE# self . doLabel = doLabel #NEWLINE# self . fillColor = fillColor #NEWLINE# self . labelFont = labelFont #NEWLINE# self . labelColor = labelColor #NEWLINE# self . background = background #NEWLINE# self . labelText = labelText #NEWLINE# self . labelFormat = labelFormat #NEWLINE# self . value = value #NEWLINE# self . frame = Frame ( master , relief = appearance , bd = bd ) #NEWLINE# self . canvas = Canvas ( self . frame , height = height , width = width , bd = 0 , highlightthickness = 0 , background = background ) #NEWLINE# self . scale = self . canvas . create_rectangle ( 0 , 0 , width , height , fill = labelFont ) #NEWLINE# self . label = self . canvas . create_text ( ( self . canvas . winfo_reqwidth ( ) / 2 ) , ( height / 2 ) , text = labelText , anchor = 'c' , fill = labelColor , font = self . labelFont ) #NEWLINE# self . update ( ) #NEWLINE# self . canvas . pack ( side = 'top' , fill = 'x' , expand = 'no' )