mport 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,...




mport 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: How big is the window that this code displays?

























a.
600 pixels wide by 300 pixels high

b.
600 characters wide by 300 characters high

c.
200 pixels wide by 100 pixels high

d.
200 characters wide by 100 characters high



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here