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

PROJECT DESCRIPTION The use of digital media has transformed how companies communicate with their customers. The use of the websites, YouTube, e-books, e-mail

PROJECT DESCRIPTION The use of digital media has transformed how companies communicate with their customers. The use of the websites, YouTube, e-books, e-mail and various forms of social media such as Facebook, Twitter, Pinterest, Snapchat, Instagram, and blogs has shaped current day communication strategies. Project 1 Consists of: 1. Project

CSCI 351 Assignment 2 60 points Instruction: · Show your own work (

CSCI 351 Assignment 2 60 points Instruction: · Show your own work (at least 50% penalty otherwise) · Submit a single WORD document (*.doc or *docx only) containing all your answers to the assignment folder (“Assignment X”) under D2L (at least 10% penalty otherwise) · Make sure you submit the