This commit is contained in:
klemek
2021-08-26 15:43:55 +02:00
parent 8bab51aa3a
commit 5bf5f27128
+7 -5
View File
@@ -377,9 +377,7 @@ class Explorer(ttk.Frame):
self.explorer.grid(row=0, column=0, sticky=(N, S, W)) self.explorer.grid(row=0, column=0, sticky=(N, S, W))
self.explorer.bind("<<TreeviewSelect>>", self.explorer_item_click) self.explorer.bind("<<TreeviewSelect>>", self.explorer_item_click)
yscrollbar = ttk.Scrollbar( yscrollbar = ttk.Scrollbar(self, orient="vertical", command=self.explorer.yview)
self, orient="vertical", command=self.explorer.yview
)
yscrollbar.grid(row=0, column=1, sticky=(N, S, W)) yscrollbar.grid(row=0, column=1, sticky=(N, S, W))
self.explorer.configure(yscrollcommand=yscrollbar.set) self.explorer.configure(yscrollcommand=yscrollbar.set)
@@ -594,8 +592,12 @@ class App(ttk.Frame):
index, index,
state=("normal" if self.current_file is not None else "disabled"), state=("normal" if self.current_file is not None else "disabled"),
) )
self.menubar.entryconfigure("Image", state=("normal" if self.current_image is not None else "disabled")) self.menubar.entryconfigure(
self.menubar.entryconfigure("Bitmap", state=("normal" if self.current_file is not None else "disabled")) "Image", state=("normal" if self.current_image is not None else "disabled")
)
self.menubar.entryconfigure(
"Bitmap", state=("normal" if self.current_file is not None else "disabled")
)
for index in self.menu_bmp_need_image: for index in self.menu_bmp_need_image:
self.menu_bmp.entryconfigure( self.menu_bmp.entryconfigure(
index, index,