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

Pretend you are meeting a patient at their definition of

Pretend you are meeting a patient at their definition of health. One person’s health goals and possibilities may differ from another’s.  Assume you are an intern at a community health clinic. Your supervisor has asked you to prepare a summary of the various definitions of health for the staff at

Chapter 8: Project Risk Analysis and Identification Initial Postings: Read

Chapter 8: Project Risk Analysis and Identification  Initial Postings: Read and reflect on the assigned readings for the week. Then post what you thought was the most important concept(s), method(s), term(s), and/or any other thing that you felt was worthy of your understanding in each assigned textbook chapter.Your initial post

Assignment – 1 MGT-321 Introduction to International Business

Assignment-1 Please read Case 4: “Will China Continue to Be a Growth Marketplace?” available in your textbook, and answer the following questions: ·        Assignment Questions: 1.     Will China maintain its strong economic growth in the years to come? Some suggest it will until 2050. What do you think?   2.    

1. Some say that analytics, in general, dehumanize managerial activities,

 1. Some say that analytics, in general, dehumanize managerial activities, and others say they do not. Discuss arguments for both points of view.  3. What are some of the major privacy concerns in employing intelligent systems on mobile data?  4. Identify some cases of violations of user privacy from  current

I watched the ted talk focusing on the faults in

I watched the ted talk focusing on the faults in our healthcare system and the lack of reimbursement for disease prevention. You asked how the flow of money from insurance and pharmaceutical companies to disease treatment effect systems theory.  Steven from the TED talk made it clear how the influence

Beginning today, students will track intimate partner violence (IPV) in

Beginning today, students will track intimate partner violence (IPV) in the news (online, television, and/or newspapers). Pay special attention to the story behind the headlines, looking for clues such as the word “estranged” or “former” or “ex” to determine the root of violent events. Students will discuss what they found.

Then address the prompt below in a few paragraphs. Remember

Then address the prompt below in a few paragraphs. Remember to remain thoughtful and respectful towards your peers and instructor in your discussion post and replies. Create one initial post and follow up with at least two response posts. For your initial post, address the following: Consider a time in

Directions: View the two videos linked below then answer the

Directions: View the two videos linked below then answer the discussion question provided. From the timeline, you are aware that in the 1960s it was decided that the mentally ill should be provided care/ treat in their communities. This video will explain this process in greater detail. Deinstitutionalization Movement This

Hiring people with a leadership style that will fit well

 Hiring people with a leadership style that will fit well within your organization is an important skill to master. For this activity, you will explore what makes a good leader and how you might identify those traits in potential applicants. This topic is one of four aspects of leadership that

Network Architecture Paper: Using either the OSI Reference Model or

  Network Architecture Paper: Using either the OSI  Reference Model or the TCP/IP Protocol Suite, describe how each layer of  the Model/Suite represents the communication flow between  organizational levels and across departments/division of an actual  hierarchical business.  Be sure to include a communication flow diagram  showing the logical and physical

For this assignment, you have been assigned a student named

 For this assignment, you have been assigned a student named Victor. For Victor, you must identify current and emerging assistive technologies to enable him to participate in high-quality communication interactions and achieve his educational goals. In addition, you will need to provide an adequate rationale for the use of this

For this Discussion Board, please complete the following: As a

  For this Discussion Board, please complete the following: As a new healthcare leader you have been tasked with developing policy for local lawmakers, politicians, and business owners with regard to the Centers for Disease Control and Prevention (CDC) guidelines for COVID-19. For this discussion, you will Explore the Covid

In the letter, you need to report assessment conducted with

   In the letter, you need to report assessment conducted with Lee. The twist is that you need to put it in parent-friendly terminology.  Not everyone has extensive knowledge of literacy vocabulary such as you.  🙂 The letter needs to include three (3)  paragraphs. Paragraph 1:  Introduce yourself.  Briefly describe

Readings but also incorporating ideas from “You May Ask Yourself”

3pages response paper focusing on the readings but also incorporating ideas from “You May Ask Yourself”. Write one paragraph on “The Souls of Black Folk”, discussing the thesis and evidence. Write one paragraph on “Where Race Matters Most”, discussing the thesis and evidence. Write one paragraph on “Black Lives and