|
| 1 | +# PyAvatar - sort and display avatars by website |
| 2 | +# (C) 2020 - 2022 |
| 3 | + |
| 4 | +# Import Statements |
| 5 | +from tkinter import * |
| 6 | + |
| 7 | +# Build Window |
| 8 | +window = Tk() |
| 9 | +window.title("Online Account Avatar and Banners") |
| 10 | + |
| 11 | +# Window Title |
| 12 | +title = Label(window, text = "Online Account Avatar and Banners") |
| 13 | + |
| 14 | +# Account Avatars |
| 15 | +account1 = Frame(window) |
| 16 | +img_account1 = PhotoImage(file = "PyAvatar/images/placeholder.gif") # needs to be a GIF |
| 17 | +title_account1 = Label(account1, image = img_account1) |
| 18 | +text_account1 = Label(account1, text = "Account #1") |
| 19 | + |
| 20 | +account2 = Frame(window) |
| 21 | +img_account2 = PhotoImage(file = "PyAvatar/images/placeholder.gif") # needs to be a GIF |
| 22 | +title_account2 = Label(account2, image = img_account2) |
| 23 | +text_account2 = Label(account2, text = "Account #2") |
| 24 | + |
| 25 | +account3 = Frame(window) |
| 26 | +img_account3 = PhotoImage(file = "PyAvatar/images/placeholder.gif") # needs to be a GIF |
| 27 | +title_account3 = Label(account3, image = img_account3) |
| 28 | +text_account3 = Label(account3, text = "Account #1") |
| 29 | + |
| 30 | +account4 = Frame(window) |
| 31 | +img_account4 = PhotoImage(file = "PyAvatar/images/placeholder.gif") # needs to be a GIF |
| 32 | +title_account4 = Label(account4, image = img_account4) |
| 33 | +text_account4 = Label(account4, text = "Account #1") |
| 34 | + |
| 35 | +account5 = Frame(window) |
| 36 | +img_account5 = PhotoImage(file = "PyAvatar/images/placeholder.gif") # needs to be a GIF |
| 37 | +title_account5 = Label(account5, image = img_account5) |
| 38 | +text_account5 = Label(account5, text = "Account #1") |
| 39 | + |
| 40 | +# Window Layout |
| 41 | +title.grid(row = 1, column = 1, columnspan = 5) |
| 42 | + |
| 43 | +# Sustain Window |
| 44 | +window.mainloop() |
0 commit comments