Hi , would you be able to explain the purpose of the statments below: note: It is on python from tkinter import * class

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Hi , would you be able to explain the purpose of the statments below: note: It is on python from tkinter import * class

Post by answerhappygod »

Hi , would you be able to explain the purpose of the statments
below:
note: It is on python
from tkinter import *
class ProcessButtonEvent:
def __init__(self):
window = Tk()
btOk= Button(window, text = "Ok", fg = "red", command
= self.processOK)
btCancel = Button(window, text = "Cancel", bg =
"yellow", command = self.processCancel)
btOK.pack()
btCancel.pack()
window.mainloop()
def processOK(self):
print("OK button is clicked")
def processCancel(self):

print("Cancel button is clicked")
myGUI = ProcessButtonEvent()
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply