Hello, I have written a program in which, among other things, a calculator is installed. However, there should actually be a 0 in the text fields and a + in the option menus. Thanks in advance!
Here is the program:
from tkinter import *
import tkinter.ttk as ttk
var1_ = IntVar()
var2_ = IntVar()
var3_ = IntVar()
var4_ = IntVar()
var5_ = IntVar()
entry1 = Entry(master=root, textvariable=var1_, font="Segoe 20")
entry1.place(x=200, y=100, width=600, height=40)
entry2 = Entry(master=root, textvariable=var2_, font="Segoe 20")
entry2.place(x=200, y=200, width=600, height=40)
entry3 = Entry(master=root, textvariable=var3_, font="Segoe 20")
entry3.place(x=200, y=300, width=600, height=40)
entry4 = Entry(master=root, textvariable=var4_, font="Segoe 20")
entry4.place(x=200, y=400, width=600, height=40)
entry5 = Entry(master=root, textvariable=var5_, font="Segoe 20")
entry5.place(x=200, y=500, width=600, height=40)
__x__=['+','-',':','x']
variable = StringVar()
variable.set(__x__[0])
dropdown1 = OptionMenu(root, variable, *__x__)
dropdown1.pack(expand=True)
dropdown1.place(x=200, y=150, width=600, height=40)
__z__=['+','-',':','x','=']
variable1 = StringVar()
variable1.set(__z__[0])
dropdown2 = OptionMenu(root, variable1, *__z__)
dropdown2.pack(expand=True)
dropdown2.place(x=200, y=250, width=600, height=40)
__b__=['+','-',':','x','=']
variable2 = StringVar()
variable2.set(__b__[0])
dropdown3 = OptionMenu(root, variable2, *__b__)
dropdown3.pack(expand=True)
dropdown3.place(x=200, y=350, width=600, height=40)
__n__=['+','-',':','x','=']
variable3 = StringVar()
variable3.set(__n__[0])
dropdown4 = OptionMenu(root, variable3, *__n__)
dropdown4.pack(expand=True)
dropdown4.place(x=200, y=450, width=600, height=40)