import tkinter as tk from tkinter import ttk root = tk.Tk() root.title("Escape from the Maze") root.geometry("600x300") frame = ttk.Frame(root, padding=" XXXXXXXXXX") frame.pack(fill=tk.BOTH,...




import tkinter as tk


from tkinter import ttk


root = tk.Tk()
root.title("Escape from the Maze")


root.geometry("600x300")


frame = ttk.Frame(root, padding="200 100 200 100")


frame.pack(fill=tk.BOTH, expand=True)


def click_button1():
    root.title("Wrong way!")
def click_button2():


    root.destroy()


button1 = ttk.Button(frame, text="Go Left", command=click_button1)


button2 = ttk.Button(frame, text="Go Right", command=click_button2)


button1.pack()


button2.pack()


root.mainloop()





Refer toCode Example 18-1: Which code snippet adds the frame to the root window?

























a.

root.mainloop()

b.

root = tk.Tk()
root.title("Escape from the Maze")


root.geometry("600x300")

c.

frame = ttk.Frame(root, padding="200 100 200 100")


frame.pack(fill=tk.BOTH, expand=True)

d.

import tkinter as tk


from tkinter import ttk



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here