diff options
author | navanchauhan <navanchauhan@gmail.com> | 2023-05-18 13:39:45 -0600 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2023-05-18 13:39:45 -0600 |
commit | 56af07bf7d9c1e9889878737709c90797dc05a54 (patch) | |
tree | c31ff627c245a00bb263f486c894896640efa468 /main.py | |
parent | 26e9e15f6352cf14a9e1c638bc0b969e5a5ace40 (diff) |
prettify
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |