python – product of two inputs in the second entry field as default value

I just want to make the entry of item quantity and price per unit amount as default value how can I do this …

There are program codes.

import tkinter as tk
from tkinter import *
from PIL import Image, ImageTk
from tkinter import ttk
import mysql
import mysql.connector
from tkinter import messagebox
import datetime
from datetime import date
from ttkwidgets.autocomplete import AutocompleteCombobox



adde=Tk()     
frm3=Frame(adde)
frm3.place(x=191,y=0,relwidth=1,relheight=1)
frm3.configure(bg='#E5E4E2')

# Unit price
price = Label(frm3, text="Unit Price",bg='#E5E4E2', font=("times new roman", 10)).place(x=555, 
y=290)
price_01 = Entry(frm3)
price_01.place(x=555, y=310, width=70)

# Quantity
qty = Label(frm3, text="Quantity",bg='#E5E4E2', font=("times new roman", 10)).place(x=635, 
y=290)
qty_01 = Entry(frm3)
qty_01.place(x=635, y=310, width=60)

# Amount
amount = Label(frm3, text="Amount",bg='#E5E4E2', font=("times new roman", 10)).place(x=705, 
y=290)
amount_01 = Entry(frm3)
amount_01.place(x=705, y=310, width =100)

adde.title(" Voucher Entry ")
adde.geometry("1400x700")
adde.configure(bg='#659EC7')
adde.mainloop()

User input price and quantity and amount entry must be automatically updated with price and quantity product and that entry cannot be editable by user ….

Write a Comment