In this article, you will learn how to create Python GUI for Random Generator. To understand this program, you should have knowledge of the following Python Programming topics:

Problem Definition

Create a python window containing a grid of 2×2 buttons. In that window, place 4 buttons that have 4 different functionalities:

  1. Button 1: Pressing Button 1 will print a random integer number.
  2. Button 2: Pressing Button 2 will print a random float number.
  3. Button 3: Pressing Button 3 will print a random lowercase word containing a-z
  4. Button 4: Pressing Button 4 will print a random uppercase word containing A-Z

Tkinter Programming

Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit. Creating a GUI application using Tkinter is an easy task.


The article was published on November 3, 2020 @ 2:20 PM

Leave a Comment