icons and sticker window
This commit is contained in:
		
							parent
							
								
									53a381222f
								
							
						
					
					
						commit
						63774ba5df
					
				
					 9 changed files with 65 additions and 7 deletions
				
			
		|  | @ -74,12 +74,12 @@ def sticker_loader(): | |||
|     """ | ||||
|     :return dict of stickers | ||||
|     """ | ||||
|     result = {} | ||||
|     result = [] | ||||
|     d = util.curr_directory() + '/stickers/' | ||||
|     keys = [x[1] for x in os.walk(d)][0] | ||||
|     for key in keys: | ||||
|         path = d + key | ||||
|         files = map(lambda f: f.endswith('.png'), os.listdir(path)) | ||||
|         if files: | ||||
|             result[key] = files | ||||
|         path = d + key + '/' | ||||
|         files = filter(lambda f: f.endswith('.png'), os.listdir(path)) | ||||
|         files = map(lambda f: path + f, files) | ||||
|         result.extend(files) | ||||
|     return result | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ingvar1995
						ingvar1995