Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 29893bd

Browse files
Update dice_roll_simulator.py
1 parent ca9346c commit 29893bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Dice-Roll-Simulator/dice_roll_simulator.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
l1.pack()
1919

2020
# images
21-
dice = ['die1.png', 'die2.png', 'die3.png', 'die4.png', 'die5.png', 'die6.png']
21+
dice = ['./Dice-Roll-Simulator/imgs/die1.png', './Dice-Roll-Simulator/imgs/die2.png', './Dice-Roll-Simulator/imgs/die3.png', './Dice-Roll-Simulator/imgs/die4.png', './Dice-Roll-Simulator/imgs/die5.png', './Dice-Roll-Simulator/imgs/die6.png']
2222
# simulating the dice with random numbers between 0 to 6 and generating image
2323
image1 = ImageTk.PhotoImage(Image.open(random.choice(dice)))
2424

@@ -46,4 +46,4 @@ def rolling_dice():
4646

4747
# call the mainloop of Tk
4848
# keeps window open
49-
root.mainloop()
49+
root.mainloop()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /