0xCor3

Tkinter

Sep 15th, 2020 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. root = Tk()
  4. root.title("Kelompok 6")
  5.  
  6. #create frame
  7. frame1 = Frame(root, cursor="spider", bg="green")
  8. Label(frame1, text="Kelompok 6", bg="green").pack()
  9. frame1.pack(expand=YES, fill=BOTH)
  10.  
  11. #list
  12. anggota = [
  13.     'Izzeldin Addarda - 41519010045',
  14.     'Akbar Basyarudin - 41519010046',
  15.     'Ridho Aditya N. - 41519010050'
  16.     ]
  17.  
  18. #frame ke 2
  19. frame2 = LabelFrame(root, text="List Anggota Kelompok : ", bd=8, bg="white")
  20. Label(frame2, text='\n'.join(str(line) for line in anggota), fg='red', bg='white').pack()
  21. frame2.pack(expand=YES, fill=BOTH)
  22.  
  23. #Quit Button
  24. Button(text="QUIT", fg="red", command=root.destroy).pack(side=BOTTOM)
  25.  
  26. mainloop()
Add Comment
Please, Sign In to add comment