Skip to content

Commit

Permalink
Merge pull request #40 from anandnet/master
Browse files Browse the repository at this point in the history
random.choice() added for wallpaper selection
  • Loading branch information
anandnet authored Jan 15, 2020
2 parents 34b0fa0 + d89b525 commit d93abdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ class HomeScreen(Screen):

def selectWallpaper(self,theme_mode):
if theme_mode=="Dark":
return "media/images/dark{}.jpg".format(random.randint(1,5))
return "media/images/dark{}.jpg".format(random.choice(["1","2","3","4","5"]))
else:
return "media/images/light{}.jpg".format(random.randint(1,7))
return "media/images/light{}.jpg".format(random.choice(["1","2","3","4","5","6","7"]))

def openLoginPop(self, title):
"""Opens up the login popup with desired title
Expand Down

0 comments on commit d93abdb

Please sign in to comment.