Professional Documents
Culture Documents
TIAAA
TIAAA
root = tk.Tk()
root.title('PROGRAM PENGGAJIAN')
root.geometry('450x350')
lbl1.place(x=10, y=10)
lbl2.place(x=10, y=50)
lbl3.place(x=10, y=90)
lbl4.place(x=10, y=130)
lbl6.place(x=10, y=210)
def proses(event):
edit1.delete(0, 'end')
edit2.delete(0, 'end')
edit3.delete(0, 'end')
selected = event.widget.get()
edit1.insert('end', item)
if edit1.get() == 'BUDIYANTO':
edit2.insert(0, 'LEKTOR')
edit3.insert(0, '6500000')
if edit1.get() == 'RUDYANTO':
edit3.insert(0, '5500000')
if edit1.get() == 'SUPRIYANTO':
edit2.insert(0, 'TENAGA PENGAJAR')
edit3.insert(0, '3500000')
combobox.place(x=190, y=10)
combobox.bind('<<ComboboxSelected>>', proses)
edit1.place(x=190, y=50)
edit2.place(x=190, y=90)
edit3.place(x=190, y=130)
edit4.place(x=190, y=170)
edit5.place(x=190, y=210)
def calculate():
edit4.delete(0, 'end')
edit5.delete(0, 'end')
if edit3.get() == '6500000':
if edit3.get() == '5500000':
if edit3.get() == '3500000':
edit4.insert(0, '0')
edit5.insert(0, '3500000')
btn1.place(x=20, y=280)
def clear():
combobox.set('')
edit1.delete(0, 'end')
edit2.delete(0, 'end')
edit3.delete(0, 'end')
edit4.delete(0, 'end')
edit5.delete(0, 'end')
btn2.place(x=160, y=280)
def quit_app():
root.destroy()
btn3.place(x=300, y=280)
root.mainloop()