This is the code for my button
What I have in my Main.py
from start.py import start_game_interface
def start_game():
start_game_interface(root)
myButton = Button(root,
text="Start", # Text on the button
bg="#666666", # Button color
fg="white", # Text color
font=("Freestyle Script", 25, "bold"), # Font must be on computer
bd=3, # The border of the button
width=button_width,
height=button_height, # Height of the button
cursor="hand2", # Mouse cursor on hover
command=start_game)
myButton.grid(row=1, column=0, pady=(20, 10))
What I have in my Start.py
def start_game_interface(root):
for widget in root.winfo_children():
widget.destroy()
When I try and run the code through the command center I am told , "ModuleNotFoundError: No module named 'start'". However, Main,py and Start.py are 100% in the same folder.