Importing the module – tkinter Create the main window (container) Add any number of widgets to the main window. Apply the event Trigger on the widgets.
A Python application that simulates the rolling of a dice, randomly picking one of the 6 faces and then displaying it.