<s> import ttk <EOL> class AutoScrollbar ( ttk . Scrollbar ) : <EOL> def set ( self , lo , hi ) : <EOL> if float ( lo ) <= <NUM_LIT:0.0> and float ( hi ) >= <NUM_LIT:1.0> : <EOL> self . tk . call ( "<STR_LIT>" , "<STR_LIT>" , self ) <EOL> else : <EOL> self . grid ( ) <EOL> ttk . Scrollbar . set ( self , lo , hi ) </s>
