Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- root.title("Kelompok 6")
- frm = LabelFrame(root, text='Kelompok 6', bd=8, bg='salmon')
- nama = ['Ridho Aditya Nurtama', 'Akbar Basyarudin', 'Izzeldin Addarda']
- nim = [41519010050, 41519010046, 41519010045]
- teks = ""
- i = 0
- while i <= 2:
- teks += "Anggota "+str(i+1)+" :"+" "+str(nama[i])+", "+str(nim[i])+"\n"
- i += 1
- Label(frm, text=teks, fg='red', bg='white').pack()
- frm.pack(expand=YES, fill=BOTH)
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement