How to Create Scientific Calculator in Python - Part 2 of 3

preview_player
Показать описание
How to Create Scientific Calculator in Python, using Mathematical functions, Function Declaration, and the following widget, Entry, Label, Button, Frame, and Menu.

See various Mathematical functions on Python Software

Join this channel to get access to codes, perks, and more support from Captain Paul DJ Oamen:

To support more videos from DJ Oamen, visit POamen Paypal

To Become a Channel member click on the link below to JOIN:

Channel Members Download the source code of the MySQL Database Library Management Systems here:

Channel Members Download the Life Calculator in Python source code here:

Channel members download the Scientific Calculator in Python source code here:
Рекомендации по теме
Комментарии
Автор

how could you learn all these languages? and have tried Windev (pc soft)?

rbi
Автор

I need help. This is the error I am getting when I am trying to run:
Traceback (most recent call last):
File "C:/Users/moniy/PycharmProjects/calc/main.py", line 18, in <module>
txtDisplay = Entry(calc, font('arial', 20, 'bold'), bg="powder blue", bd=30, width=28, justify=RIGHT)
TypeError: 'NoneType' object is not callable

This is the code
from tkinter import *
import math
import parser
import tkinter.messagebox
from turtle import width

from pygame.examples.eventlist import font

root = Tk()
root.title("Scientific Calculator ")
blue")
root.resizable(width=True, height=True)
root.geometry("480x568+0+0")

calc = Frame(root)
calc.grid()

txtDisplay = Entry(calc, font('arial', 20, 'bold'), bg="powder blue", bd=30, width=28, justify=RIGHT)
txtDisplay.grid(row=0, column=0, columnspan=4, pady=1)
txtDisplay.insert(0, "0")


def iExit():
iExit = Calculator", "Confirm if you want to exit")
if iExit > 0:
root.destroy()
return


def Scientific():
root.resizable(width=True, height=True)
root.geometry("944x568+0+0")


def Standard():
root.resizable(width=True, height=True)
root.geometry("480x568+0+0")


menuBar = Menu(calc)

fileMenu = Menu(menuBar, tearoff=0)
menuBar.add_cascade(label="File", menu=fileMenu)
fileMenu.add_command(label="Standard", command=Standard)
fileMenu.add_command(label="Scientific", command=Scientific)
fileMenu.add_separator()
fileMenu.add_command(label="Exit", command=iExit)

editMenu = Menu(menuBar, tearoff=0)
menuBar.add_cascade(label="Edit", menu=editMenu)


editMenu.add_separator()


helpMenu = Menu(menuBar, tearoff=0)
menuBar.add_cascade(label="Help", menu=helpMenu)
help")

root.config(menu=menuBar)
root.mainloop()

mokshaeducation
welcome to shbcf.ru