summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-05-18 13:22:24 -0600
committernavanchauhan <navanchauhan@gmail.com>2023-05-18 13:22:24 -0600
commit1dd167cfa63709e5cff6923ca9aef4b39f2dafe8 (patch)
tree1c1ff7aabec4898338cb6dc15db4bc687df3432d /main.py
parenta0aa9a59190b46080cba828cd4903cc582541347 (diff)
activate sun valley theme
Diffstat (limited to 'main.py')
-rw-r--r--main.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.py b/main.py
index 8bd80dd..aec2315 100644
--- a/main.py
+++ b/main.py
@@ -3,6 +3,10 @@ import tkinter as tk
from tkinter import ttk
from tkinter.filedialog import askopenfilename, asksaveasfilename
+import sv_ttk
+
+import os
+
def pyramid_list(lst):
i = 0
rows = 0
@@ -92,8 +96,9 @@ class CompanySelector:
# Initialize some parameters
img_width = 3300
- img_height = 2550
+ img_height = 1550 #2550
block_color = (0, 0, 255) # Blue color
+ dividend_color = (0, 255, 0) # Green color
font_color = (255, 255, 255) # White color
padding = 10 # Padding around blocks
radius = 20
@@ -232,5 +237,6 @@ class CompanySelector:
if __name__ == "__main__":
root = tk.Tk()
app = CompanySelector(root)
- #root.geometry("500x200")
+ if os.name != "posix":
+ sv_ttk.set_theme("dark")
root.mainloop()