coding
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()
2 years ago
5
- A sailboat accelerates uniformly from 5.5m/s to 9.0m/s over a distance of 32m. At what rate is the boat accelerating?
- Due in the Morning .. please help me
- Law
- Engine starting and charging system works
- MAT 510 WEEK 2 DISCUSSION
- done-pols---750-1000 words
- class 2 week 5 discussion
- Business law and Ethics
- Find an equation with a solution of x=6x=6 of multiplicity 11, and a solution of x=2x=2 of multiplicity 22.
- Economics