python

Fish inventory system using python tkinter

This tutorial will teach you  to make a small Fish shop Inventory  system using python. The following  system will use to manage the Fish shop.

import tkinter as tk

OptionList = [
"kg",
"gm",
]

def Ok():
    item = variable.get()
    result = float(e1.get())

    if item == "kg":
        tot = result * 120
    else :
        tot = result/1000 * 120
    nsalText.set(tot)

root = tk.Tk()
root.geometry('300x200')
root.title("Inventory System")

variable = tk.StringVar(root)
variable.set(OptionList[0])

opt = tk.OptionMenu(root, variable, *OptionList)
opt.config(width=10, font=('Helvetica', 12))
opt.pack(side="top")
global e1
global nsalText
nsalText = tk.StringVar()
labelTest = tk.Label(text="", font=('Helvetica', 12), fg='red')
labelTest.pack(side="top")

tk.Label(root, text="Fish").place(x=10, y=10)

tk.Label(root, text="Qty").place(x=10, y=40)


tk.Label(root, text="Total:").place(x=10, y=150)
tk.Label(root, text="", font=('Helvetica', 12), fg='red' , textvariable=nsalText).place(x=100, y=150)
tk.Button(root, text="Cal", command=Ok ,height = 1, width = 3).place(x=100, y=110)

e1 = tk.Entry(root)
e1.place(x=100, y=40)

root.mainloop()

i have attached the video link below. which will do this tutorials step by step.

 

 

 

 

admin

Recent Posts

Employee Working Hours Calculation System using C#.net

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…

3 days ago

Java Payroll System Calculate Employee Overtime

Act as a Java developer to create a program that calculates the gross wage for…

5 days ago

Employee Working Hours Calculation System using Java

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…

6 days ago

Laravel 11 School Management System

In this tutorial, we will teach you how to create a simple school management system…

2 weeks ago

How to Make Admin Panel Using React MUI

I have design the Admin Basic templete using React MUI Design Admin Dashboard and Login.Here…

3 weeks ago

Install Laravel Breeze for Authentication Using Laravel 11

In this tutorial ,i am to going teach the Laravel Breeze.Laravel Breeze provides a simple…

4 weeks ago