akbarbasya26

Tkinter

Sep 15th, 2020
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from tkinter import *
  2.  
  3. root = Tk()
  4. root.title("Kelompok 6")
  5.  
  6. #create frame
  7. frame1 = Frame(root, cursor="spider", bg="blue")
  8. Label(frame1, text="Kelompok 6", bg="blue").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='green', bg='white').pack()
  21. frame2.pack(expand=YES, fill=BOTH)
  22.  
  23. #Quit Button
  24. Button(text="QUIT", fg="green", command=root.destroy).pack(side=BOTTOM)
  25.  
  26. mainloop()
RAW Paste Data