Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- root.title("Kelompok 6")
- #create frame
- frame1 = Frame(root, cursor="spider", bg="green")
- Label(frame1, text="Kelompok 6", bg="green").pack()
- frame1.pack(expand=YES, fill=BOTH)
- #list
- anggota = [
- 'Izzeldin Addarda - 41519010045',
- 'Akbar Basyarudin - 41519010046',
- 'Ridho Aditya N. - 41519010050'
- ]
- #frame ke 2
- frame2 = LabelFrame(root, text="List Anggota Kelompok : ", bd=8, bg="white")
- Label(frame2, text='\n'.join(str(line) for line in anggota), 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