aboutsummaryrefslogtreecommitdiff
path: root/menu.py
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-08-10 18:27:58 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-08-10 18:27:58 -0400
commit550bb286de0f8b508fed530372768116ff90a16d (patch)
treeeb0a4a47326cc0a1b789f5edefc0dbe519b60529 /menu.py
parentd9cebec4532a82507aed2aff3516c7df4eaf973f (diff)
downloadRPi-Menu-550bb286de0f8b508fed530372768116ff90a16d.tar.gz
RPi-Menu-550bb286de0f8b508fed530372768116ff90a16d.tar.bz2
RPi-Menu-550bb286de0f8b508fed530372768116ff90a16d.zip
Clean up the code more
Diffstat (limited to 'menu.py')
-rwxr-xr-xmenu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.py b/menu.py
index b4e0d0f..d132259 100755
--- a/menu.py
+++ b/menu.py
@@ -37,6 +37,8 @@ btnBG = "#8c8c8c"
btnABG = "#666666"
btnBD = 0
btnRelief = "flat"
+labelFont = tkFont.Font(size=15, weight="bold")
+btnFont = tkFont.Font(size=12, weight="bold")
# Functions
def launchDesktop():
@@ -62,7 +64,6 @@ def launchKodi():
quit()
# Labels
-labelFont = tkFont.Font(size=15)
varWelcome = StringVar()
labelWelcome = Label( root, textvariable=varWelcome, font=labelFont, bg="#4d4d4d", fg="white")
varWelcome.set("Welcome to Raspberry Pi OS!\nWhere do you want to go?\n")
@@ -72,7 +73,6 @@ labelCopyright = Label( root, textvariable=varCopyright, font=labelFont, bg="#4d
varCopyright.set("(C) Copyright 2020, Andrew Lee. Licensed with GPL-3.0\nhttps://alee14.me")
# Buttons
-btnFont = tkFont.Font(size=12, weight="bold")
btnDesktop = Button(root, text = 'Desktop', width=btnSizeW, height=btnSizeH, font=btnFont, bg=btnBG, activebackground=btnABG, bd=btnBD, relief=btnRelief, command = launchDesktop)
btnDashboard = Button(root, text = 'Dashboard + Mycroft AI', width=btnSizeW, height=btnSizeH, font=btnFont, bg=btnBG, activebackground=btnABG, bd=btnBD, relief=btnRelief, command = launchDashboard)
btnRetroPie = Button(root, text = 'RetroPie', width=btnSizeW, height=btnSizeH, font=btnFont, bg=btnBG, activebackground=btnABG, bd=btnBD, relief=btnRelief, command = launchRetroPie)