Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- root.title("Kelompok 6")
- #list
- list_anggota = {
- 'Izzeldin Addarda': '41519010045',
- 'Akbar Basyarudin': '41519010046',
- 'Ridho Aditya N' : '41519010050'
- }
- #frame ke 2
- teks = ""
- i = 0
- while i < len(list_anggota): # create teks body
- val = list(list_anggota.items())[i]
- teks += "Anggota {} {}, {}\n".format(str(i+1), str(val[0]), str(val[1]))
- i += 1
- frame2 = LabelFrame(root, text="Kelompok 6 : ", bd=8, bg="white")
- Label(frame2, text=teks, fg='red', bg='white').pack()
- frame2.pack(expand=YES, fill=BOTH)
- #Quit Button
- Button(text="QUIT", fg="red", command=root.destroy).pack(side=BOTTOM)
- mainloop()
Add Comment
Please, Sign In to add comment