1. Write the following codes and submit the files in the “Submission.” Submission: 1. A summary of the program, what does the program do 2. Screenshot

 

1. Write the following codes and submit the files in the “Submission.”

Submission:

1. A summary of the program, what does the program do

2. Screenshot of the Running program

a). 

import tkinter

def main():

    # Create the main window widget.

    main_window = tkinter.Tk()

    #Enter the tkinter main loop.

    tkinter.mainloop()

# Call the main function.

main()

=========================================

b)

import tkinter

class MyGUI:

    def __init__(self):

        # Create the main window widget.

        self.main_window = tkinter.Tk()

        # Create a Label widget containing the

        # text ‘Hello World!’

        self.label = tkinter.Label(self.main_window,

                                   text=”Hello World!”)

        # Call the Label widget’s pack method.

        self.label.pack()

        # Enter the tkinter main loop.

        tkinter.mainloop()

# Create an instance of the MyGUI class.

my_gui = MyGUI()

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

  Describe the different display types available.  Describe how to adjust display settings and comment on the various video standards, resolutions, and

  Describe the different display types available.  Describe how to adjust display settings and comment on the various video standards, resolutions, and concepts. You need to describe how to build custom configurations.  In particular describe the differences between a standard thick client, virtualization workstation and thin clients. Instructions: Responses should include

CSCI 351 Assignment60 pointsInstruction: · Show your

CSCI 351 Assignment 60 points Instruction: · Show your own work (at least 50% penalty otherwise) · Submit (1) a single word document containing the source code (copied from the source program file) of your program and screenshot of the program run including the number of words tested. · Submit