-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUI.py
More file actions
37 lines (29 loc) · 1020 Bytes
/
Copy pathUI.py
File metadata and controls
37 lines (29 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import tkinter as tk
from tkinter import messagebox
import LastFMLogin
def setup():
def button_clicked():
LastFMLogin.login()
root = tk.Tk()
root.title("Music Lights")
root.config(bg="#3e0b00")
root.geometry("1000x1000")
# Main Label
mainLabel = tk.Label(text="Welcome to my app! "
"\n\n Click the button below to login to your lastFM Account.",
font=("Courier New", 18, "bold"),
bg = "#320900"
)
mainLabel.pack(pady=100)
# Login button
logInButton = tk.Button(text="Click Here to log in",
command=button_clicked,
bg = "#3e0b00",
fg= "#320900",
width=20,
height=5,
padx=10,
pady=10
)
logInButton.pack(pady= 10)
root.mainloop()