ganesh kavhar python projects..
Basic steps:
First we create an object named root out of tk. We create an object of the calc and pass root as master to the init method. Mainloop starts an event loop, which is basically an infinite loop waiting for events and respond accordingly. The mainloop can be terminated by closing the window or using close method.
Output: