Dice Simulator using Tkinter

This is a simple project made using Tkinter, which is the standard Python interface to the Tcl/Tk GUI toolkit.

It simply allows user to roll dice in real time.

Installation

Install pillow

The Python Imaging Library adds image processing capabilities to your Python interpreter.

This library provides extensive file format support, an efficient internal representation, and fairly powerful image processing capabilities.

  pip install Pillow

Usage

  from tkinter import *
  from PIL import ImageTk, Image
  
  def makeTkImage(fileSource):
    return ImageTk.PhotoImage(Image.open(fileSource))

Documentation

Authors