#NEWLINE# def _configure( self , qtile , screen ) : #NEWLINE# #INDENT# Gap . _configure ( self , qtile , screen ) #NEWLINE# stretches = 0 #NEWLINE# for w in self . widgets : #NEWLINE# #INDENT# w . _test_orientation_compatibility ( self . horizontal ) #NEWLINE# if ( w . length_type == STRETCH ) : #NEWLINE# #INDENT# stretches += 1 #NEWLINE# #UNINDENT# #UNINDENT# if ( stretches > 1 ) : #NEWLINE# #INDENT# raise confreader . ConfigError ( 'Only one STRETCH widget allowed!' ) #NEWLINE# #UNINDENT# self . window = window . Internal . create ( self . qtile , self . x , self . y , self . width , self . height , self . opacity ) #NEWLINE# self . drawer = drawer . Drawer ( self . qtile , self . window . window . wid , self . width , self . height ) #NEWLINE# self . drawer . clear ( self . background ) #NEWLINE# self . window . handle_Expose = self . handle_Expose #NEWLINE# self . window . handle_ButtonPress = self . handle_ButtonPress #NEWLINE# self . window . handle_ButtonRelease = self . handle_ButtonRelease #NEWLINE# qtile . windowMap [ self . window . window . wid ] = self . window #NEWLINE# self . window . unhide ( ) #NEWLINE# for i in self . widgets : #NEWLINE# #INDENT# qtile . registerWidget ( i ) #NEWLINE# i . _configure ( qtile , self ) #NEWLINE# #UNINDENT# self . _resize ( self . length , self . widgets )