-
We first create a frame with a background color of “skyblue” and a padding of 10 pixels on all four sides.
-
We then create an entry widget with a sunken border and a width of 30 characters.
-
We then place the entry widget in the frame.
We first create a frame with a background color of “skyblue” and a padding of 10 pixels on all four sides.
We then create an entry widget with a sunken border and a width of 30 characters.
We then place the entry widget in the frame.
4.It creates a button with the text 'Clear' and places it on the window.
-
We first import the tkinter module.
-
Then we create a new window using the Tk() method.
-
Next, we create a label widget.
-
Then we add the label to the window using the pack() method.
-
Finally, we create a loop to keep the window open.
10.It creates a calculator.
