Simple sales tool creation with Python GUI: Employee number search

How to create a simple sales tool in Python: Employee number search

Share the tools you created for a short time in sales. I created it with Spyder (Python 3.7) while checking it on Google.

import tkinter as tk
root=tk.Tk()
root.geometry('300x200')
root.title('Employee')
def btn_click():
    x=txt_1.get()
    if x=="Tanaka":
        txt_2.insert(0,1)     
    elif x=="Suzuki":
        txt_2.insert(0,2)
    elif x=="Yamada":
        txt_2.insert(0,3)
    else:
        txt_2.insert(0,"Not applicable")
lbl_1 = tk.Label(text='Last name')
lbl_1.place(x=30, y=70)
lbl_2 = tk.Label(text='employee number')
lbl_2.place(x=30, y=100)
txt_1 = tk.Entry(width=20)
txt_1.place(x=90, y=70)
txt_2 = tk.Entry(width=20)
txt_2.place(x=90, y=100)
btn = tk.Button(root, text='Run', command=btn_click)
btn.place(x=140, y=170)
root.mainloop()

Recommended Posts

Simple sales tool creation with Python GUI: Employee number search
Simple sales tool creation using Python GUI: Employee number search (radio button)
Simple sales tool creation with Python GUI: Quote creation
Simple sales tool creation with Python GUI: Cost rate calculation
Simple sales tool creation with Python GUI: Desktop application released
GUI image cropping tool made with Python + Tkinter
Sequential search with Python
Binary search with python
Binary search with Python3
Crawling with Python and Twitter API 1-Simple search function
Get Python list elements with multiple indexes (number) Simple method
ABC161D Lunlun Number with python3
[GUI with Python] PyQt5-Layout management-
Full bit search with Python
Create a simple video analysis tool with python wxpython + openCV
Search engine work with python
Search twitter tweets with python
[GUI with Python] PyQt5 -Preparation-
Streamline web search with python
[GUI with Python] PyQt5 -Paint-
Number recognition in images with Python
[GUI with Python] PyQt5 -Widget II-
Let's make a GUI with python.
random French number generator with python
[GUI with Python] PyQt5-The first step-
[GUI with Python] PyQt5-Drag and drop-
GUI creation with Pyside2 <Kindergarten level>
Automate simple tasks with Python Part0
[GUI with Python] PyQt5 -Custom Widget-
GUI creation in python using tkinter 2
Analyze the source code of your own simple search engine written in Python with the code visualization tool "SOURCE TRAIL"
Algorithm learned with Python 10th: Binary search
Algorithm learned with Python 9th: Linear search
Automate simple tasks with Python Part1 Scraping
Machine learning with python (2) Simple regression analysis
Create a simple GUI app in Python
Use Amazon Simple Notification Service with Python
Search the maze with the python A * algorithm
WebApi creation with Python (CRUD creation) For beginners
Excel table creation with Python [Progress management table]
Happy GUI construction with electron and python
Algorithm learned with Python 12th: Maze search
I made a simple blackjack with Python