Advertisement
H34VENT

While in Tkinter

Sep 22nd, 2020
1,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from tkinter import  *
  2. root = Tk()
  3. root.title("Kelompok 6")
  4.  
  5. frm = LabelFrame(root, text='Kelompok 6', bd=8, bg='salmon')
  6.  
  7. nama = ['Ridho Aditya Nurtama', 'Akbar Basyarudin', 'Izzeldin Addarda']
  8. nim = [41519010050, 41519010046, 41519010045]
  9. teks = ""
  10. i = 0
  11. while i <= 2:
  12.   teks += "Anggota "+str(i+1)+" :"+" "+str(nama[i])+", "+str(nim[i])+"\n"
  13.   i += 1
  14.  
  15. Label(frm, text=teks, fg='red', bg='white').pack()
  16. frm.pack(expand=YES, fill=BOTH)
  17.  
  18. mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement