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.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,
|
||||||
|
|||||||
Reference in New Issue
Block a user