Question: Look at the following program. 1 import tkinter 2 3 def main ( ) : 4 main _ window = tkinter.Tk ( ) 5 tkinter.mainloop
Look at the following program.
import tkinter
def main:
mainwindow tkinter.Tk
tkinter.mainloop
if namemain:
main
What does the code in line do
It calls a function that runs like an infinite loop.
It creates the GUI's root widget.
It creates an instance of the MainWindow class.
It gets a reference to the operating system's main window.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
