blacked
This commit is contained in:
@@ -377,9 +377,7 @@ class Explorer(ttk.Frame):
|
||||
self.explorer.grid(row=0, column=0, sticky=(N, S, W))
|
||||
self.explorer.bind("<<TreeviewSelect>>", self.explorer_item_click)
|
||||
|
||||
yscrollbar = ttk.Scrollbar(
|
||||
self, orient="vertical", command=self.explorer.yview
|
||||
)
|
||||
yscrollbar = ttk.Scrollbar(self, orient="vertical", command=self.explorer.yview)
|
||||
yscrollbar.grid(row=0, column=1, sticky=(N, S, W))
|
||||
self.explorer.configure(yscrollcommand=yscrollbar.set)
|
||||
|
||||
@@ -594,8 +592,12 @@ class App(ttk.Frame):
|
||||
index,
|
||||
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("Bitmap", 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(
|
||||
"Bitmap", state=("normal" if self.current_file is not None else "disabled")
|
||||
)
|
||||
for index in self.menu_bmp_need_image:
|
||||
self.menu_bmp.entryconfigure(
|
||||
index,
|
||||
|
||||
Reference in New Issue
Block a user