Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- root.title("Kelompok 6")
- #frame 1
- frm = Frame(root, cursor='heart', bg='salmon')
- Label(frm, text='Kelompok 6', fg='white', bg='salmon').pack()
- frm.pack(expand=YES, fill=BOTH)
- #frame 2
- frm2 = LabelFrame(root, text='Anggota', bd=8, bg='white')
- Label(frm2, text='List anggota kelompok 6')
- anggota = ['Ridho aditya', 'Izzeldin Addarda', 'Akbar basyarudin']
- jmlanggota = "Jumlah anggota ada : " + str(len(anggota))
- Label(frm2, text=jmlanggota).pack()
- anggota1 = 'Anggota ke 1 : ' + anggota[0]
- Label(frm2, text=anggota1, fg='red').pack()
- anggota2 = 'Anggota ke 2 : ' + anggota[1]
- Label(frm2, text=anggota2, fg='red').pack()
- anggota3 = 'Anggota ke 3 : ' + anggota[2]
- Label(frm2, text=anggota3, fg='red').pack()
- frm2.pack(expand=YES, fill=BOTH)
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement