Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from getset import getset
- from restRFID import restRFID
- class UIinput:
- varInput = ""
- varIN = ""
- def inputDat():
- global varIN
- ui = Tk()
- ui.geometry("300x300")
- ui.title("Input Data")
- frame1 = Frame(ui)
- frame1.pack()
- frame2 = Frame(ui)
- frame2.pack()
- label1 = Label(frame1, text = "Masukkan nama: ")
- label1.pack(side = LEFT)
- textbox1 = Entry(frame1, bd = 5, width = 20)
- textbox1.pack(side = LEFT)
- varIN = textbox1.get()
- Button1 = Button(ui, text = "Input", command = lambda: UIinput.process(textbox1.get()))
- Button1.place(x = 150,y = 50)
- ui.mainloop()
- def process(dat):
- sset = getset()
- sset.set(str(dat))
- restRFID.getDat()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement