#NEWLINE# def set_wallpaper( self ) : #NEWLINE# #INDENT# if ( len ( self . images ) == 0 ) : #NEWLINE# #INDENT# if ( len ( self . wallpaper ) == 0 ) : #NEWLINE# #INDENT# self . text = 'empty' #NEWLINE# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . images . append ( self . wallpaper ) #NEWLINE# #UNINDENT# #UNINDENT# cur_image = cur_image . images [ self . index ] #NEWLINE# self . text = os . path . basename ( cur_image ) #NEWLINE# if self . wallpaper_command : #NEWLINE# #INDENT# self . wallpaper_command . append ( cur_image ) #NEWLINE# subprocess . call ( self . wallpaper_command ) #NEWLINE# return #NEWLINE# #UNINDENT# subprocess . call ( [ 'feh' , '--bg-fill' , cur_image ] )