예제 #1
0
파일: mainGui.py 프로젝트: DarkSouL11/UIP
 def set_wallpaper(self):
     """Set the wallpaper which is being previewed."""
     image = self.images[self.index]
     change_background(image)
예제 #2
0
 def change_random(self):
     filename = random.choice(os.listdir(self.directory))
     path = os.path.join(self.directory, filename)
     print("changing desktop wallpaper to: ", path)
     change_background(path)
예제 #3
0
파일: scheduler.py 프로젝트: mayank1495/UIP
 def change_random(self):
     directory = os.path.join(CURR_DIR, PICS_FOLDER)
     filename = random.choice(os.listdir(directory))
     path = os.path.join(directory, filename)
     print("changing desktop wallpaper to: ", path)
     change_background(path)