Skip to content
Snippets Groups Projects
Commit 7d101dd4 authored by BAVIELLO GREGORY's avatar BAVIELLO GREGORY
Browse files

Changement taille fenetre arborescence

parent b4349d35
Branches
No related merge requests found
......@@ -72,6 +72,7 @@ class InterfaceManager():
def __init__(self) -> None:
self.root = ctk.CTk()
self.f = font.Font(size=18)
self.f.configure(underline=True)
......@@ -158,12 +159,12 @@ class InterfaceManager():
# file_image = file_image.resize((16, 16), Image.ANTIALIAS)
# file_image = ImageTk.PhotoImage(file_image)
self.tree = ttk.Treeview(self.root, show="tree")
self.tree.place(x = 0, y = 260, width=200, height=387)
self.tree.place(x = 0, y = 260, width=500, height=387)
self.scroll = Scrollbar(self.root)
self.scroll.pack(side=RIGHT, fill=Y)
self.text = tk.Text(self.root, bg = "white", width=122, yscrollcommand=self.scroll.set)
self.text.place(x = 200, y = 260)
self.text.place(x = 500, y = 260)
self.text.bind('<<Modified>>', showEnd)
self.scroll.config(command=self.text.yview)
self.old_stdout = sys.stdout
......@@ -195,11 +196,17 @@ class InterfaceManager():
"Eukaryota.ids",
"Viruses.ids"
]
self.button = ctk.CTkButton(self.root, text='Téléchargement fichiers', command=self.download_file)
self.button.place(x = 580, y = 600)
self.button = ctk.CTkButton(self.root, text='Téléchargement fichiers', command=self.download_file, fg_color="grey")
self.button.invoke = self.invoke
self.button.invoke()
self.button.place(x = 580, y = 650)
self.button.configure
self.root.mainloop()
def invoke(self, event=0):
if self.button.command is not None:
self.button.command()
def download_file(self):
self.button.state = "disabled"
t = threading.Thread(target=self.extract_tree)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment