Today I began making a minesweeper game using tkinter from this youtube tutorial: Python Game Development Project Using OOP – Minesweeper Tutorial (w/ Tkinter) (youtube.com)
I had to stop because class ended at timestamp: 12:10
Here is a bit of the code I wrote:
from tkinter import *
#Override the settings of the window
root = Tk()
root.configure(bg="Dark SeaGreen")
root.geometry('1440x720')
root.title("Minesweeping Game")
root.resizable(False, False)
top_frame = Frame(
root,
bg="lightblue",# change later
width=1440,
height=180
)
top_frame.place(x=0, y=0)
#Run the window
root.mainloop()
This code opens a window and then takes a chunk of it and changes it to be a different color.
That is an image of what happens when the code is run, I’ll continue working on it next Friday.
Leave a Reply