Designing the Game UI
In this lesson, we will design the user interface of the Rock Paper Scissors game using various Tkinter widgets and frames.
We'll cover the following...
Now that we have a rough design of the game, let’s implement it using Python.
Creating a window
First of all, let’s create a Tkinter GUI window with 400px
width and 300px
height and give it a title.
import tkinter as tk window = tk.Tk() window.geometry("400x300") window.title("Rock Paper Scissors Game") window.mainloop()
Creating a window for the Rock Paper Scissors game
Next, we will split this GUI into two parts using Frames.
Adding Frames
We will create two Frame widgets and put them in the GUI using the grid geometry.
We will place ...