I am trying to make a simple dice simulator. I wanted to show result in messagebox as image of the face of dice and result.
Here it goes !
from tkinter import * root = Tk() canvas = Canvas(root, width = 300, height = 300) canvas.pack() img = PhotoImage(file="ball.ppm") canvas.create_image(20,20, anchor=NW, image=img) mainloop()
2.1m questions
2.1m answers
60 comments
57.0k users