Advertisement
H34VENT

Untitled

Sep 15th, 2020
1,314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. from tkinter import  *
  2. root = Tk()
  3. root.title("Kelompok 6")
  4.  
  5. #frame 1
  6. frm = Frame(root, cursor='heart', bg='salmon')
  7. Label(frm, text='Kelompok 6', fg='white', bg='salmon').pack()
  8. frm.pack(expand=YES, fill=BOTH)
  9.  
  10. #frame 2
  11. frm2 = LabelFrame(root, text='Anggota', bd=8, bg='white')
  12. Label(frm2, text='List anggota kelompok 6')
  13. anggota = ['Ridho aditya', 'Izzeldin Addarda', 'Akbar basyarudin']
  14. jmlanggota = "Jumlah anggota ada : " + str(len(anggota))
  15. Label(frm2, text=jmlanggota).pack()
  16.  
  17. anggota1 = 'Anggota ke 1 : ' + anggota[0]
  18. Label(frm2, text=anggota1, fg='red').pack()
  19. anggota2 = 'Anggota ke 2 : ' + anggota[1]
  20. Label(frm2, text=anggota2, fg='red').pack()
  21. anggota3 = 'Anggota ke 3 : ' + anggota[2]
  22. Label(frm2, text=anggota3, fg='red').pack()
  23. frm2.pack(expand=YES, fill=BOTH)
  24.  
  25. mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement