I need help with python

Hello, Im new to python. For some reason my code isnt working. Im making a app that shows you your files to run. This is what i have so far.

import tkinter as tk
from tkinter import filedialog, Text
import os 

root = tk.Tk()

def addApp():
    filename = filedialog.askopenfilename(initialdir="/", title="Select File"
    filetypes=(("executables","*.exe"), ("all files", "*.*")))

canvas = tk.Canvas(root, height=500, width=600, bg="lightblue")
canvas.pack()

frame = tk.Frame(root, bg="white")
frame.place(relwidth=0.8, relheight=0.8, relx=0.1, rely=0.1)

openFile = tk.Button(root, text="Open Files", padx=10, pady=5, fg="white", bg="#263D42" command=addApp)
openFile.pack()

runApps = tk.Button(root, text="Run Apps", padx=10, pady=5, fg="white", bg="#263D42")
runApps.pack()



root.mainloop()

My code says that the line “filetypes=((“executables”,”.exe"), (“all files”, ".*")))" Is a invalid syntax. I click on it and then it shows “filetypes” highlighted.

Please help me. Thanks

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks are not single quotes.

markdown_Forums

Okay thank you. But do you think you can help me?

OOOOOOH LOL IM RETARDED! I got it, I forgot the comma haha.