summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-05-18 13:39:45 -0600
committernavanchauhan <navanchauhan@gmail.com>2023-05-18 13:39:45 -0600
commit56af07bf7d9c1e9889878737709c90797dc05a54 (patch)
treec31ff627c245a00bb263f486c894896640efa468 /main.py
parent26e9e15f6352cf14a9e1c638bc0b969e5a5ace40 (diff)
prettify
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.py b/main.py
index 8b89746..5415974 100644
--- a/main.py
+++ b/main.py
@@ -3,6 +3,8 @@ import tkinter as tk
from tkinter import ttk
from tkinter.filedialog import askopenfilename, asksaveasfilename
+from ttkwidgets import ScrolledListbox
+
import sv_ttk
import os
@@ -48,11 +50,11 @@ class CompanySelector:
def show_companies(self):
self.select_file_button.pack_forget()
- self.company_listbox = tk.Listbox(self.master, selectmode=tk.MULTIPLE, exportselection=False, height=20)
+ self.company_listbox = ScrolledListbox(self.master, selectmode=tk.MULTIPLE, exportselection=False, height=20)
self.company_listbox.pack(expand=True)
for company in self.df["Symbol"]:
- self.company_listbox.insert(tk.END, company)
+ self.company_listbox.listbox.insert(tk.END, company)
# bind the listbox to an onselect event