Posts

Showing posts from December, 2018

GUI Calculator using Tkinter in Python

GUI CALCULATOR USING TKINTER IN PYTHON INTRODUCTION: Calculator is used in everyday life. From the small calculation to the big calculation, calculator is used. Designing a calculator can be done in many ways, one way of designing is by using Python. I have explained all the procedures of designing a calculator using Python. BUTTONS : First we have to create 16 buttons, for creating buttons we are using the command which is given below, “button1 = Button(abc, text=' 1 ', fg='black', bg='white', command=lambda: press(1), height=5, width=10) button1.grid(row=2, column=0)” Using the word button a new button is created, ‘fg’ is for front colour and ‘bg’ is for background colour. ‘Height’ specifies the height of a button and ‘width’ specifies the width of the button. In grid we given the row and column where the button should be displayed. In the same way do it for 16 buttons FUNCTIONS: We have to create some functions...