Free Friday 9/26/24

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.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *