<s>[INST] import tkinter as tk
from tkinter import ttk

class MyGUI:
    def __init__(self, root):
        self.root = root
        self.root.title('My GUI')
        self.root.geometry('500x500')

        # Create widgets
        self.name_label = tk.Label(root, text='Name:')
        self.name_label.pack()

        self.name_entry = tk.Entry(root)
        self.name_entry.pack()

        self.email_label = tk.Label(root, text='Email:')
        self.email_label.pack()

        self.email_entry = tk.Entry(root)
        self.email_entry.pack()

        self.password_label = tk.Label(root, text='Password:')
        self.password_label.pack()

        self.password_entry = tk.Entry(root, show='*')
        self.password_entry.pack()

        self.login_button = tk.Button(root, text='Login', command=self.login)
        self.login_button.pack()

    def login(self):
        name = self.name_entry.get()
        email = self.email_entry.get()
        password = self.password_entry.get()
        print(name, email, password)

root = tk.Tk()
my_gui = MyGUI(root)
root.mainloop()

This is a simple login GUI. I want to add some new functionality. I want to add a checkbox that allows the user to select whether they want to save the login credentials to a file so they don't have to log in every time. I want to store the credentials in a file called "saved_credentials.txt" and each line will be a username, email, and password separated by commas. When the checkbox is unchecked, the credentials will not be saved. How can I add this functionality?[/INST]