fix(seismo-lab): remove duplicate capture history list
This commit is contained in:
@@ -271,31 +271,6 @@ class BridgePanel(tk.Frame):
|
|||||||
self._hist_lb.pack(side=tk.LEFT, fill=tk.X, expand=True)
|
self._hist_lb.pack(side=tk.LEFT, fill=tk.X, expand=True)
|
||||||
self._hist_lb.bind("<Double-Button-1>", self._on_hist_dblclick)
|
self._hist_lb.bind("<Double-Button-1>", self._on_hist_dblclick)
|
||||||
|
|
||||||
tk.Label(hist_outer, text="dbl-click to reload", bg=BG2, fg=FG_DIM,
|
|
||||||
font=MONO_SM, anchor="e").pack(side=tk.RIGHT, padx=6)
|
|
||||||
|
|
||||||
# Capture history list
|
|
||||||
hist_outer = tk.Frame(self, bg=BG2)
|
|
||||||
hist_outer.pack(side=tk.TOP, fill=tk.X, padx=4, pady=(2, 0))
|
|
||||||
|
|
||||||
tk.Label(hist_outer, text="Captures:", bg=BG2, fg=FG_DIM,
|
|
||||||
font=MONO_SM, anchor="w").pack(side=tk.LEFT, padx=(4, 6))
|
|
||||||
|
|
||||||
hist_inner = tk.Frame(hist_outer, bg=BG2)
|
|
||||||
hist_inner.pack(side=tk.LEFT, fill=tk.X, expand=True)
|
|
||||||
|
|
||||||
self._hist_lb = tk.Listbox(
|
|
||||||
hist_inner, bg=BG3, fg=FG, font=MONO_SM,
|
|
||||||
height=3, relief="flat", selectbackground=BG,
|
|
||||||
selectforeground=ACCENT, activestyle="none",
|
|
||||||
highlightthickness=0,
|
|
||||||
)
|
|
||||||
hist_vsb = ttk.Scrollbar(hist_inner, orient="vertical", command=self._hist_lb.yview)
|
|
||||||
self._hist_lb.configure(yscrollcommand=hist_vsb.set)
|
|
||||||
hist_vsb.pack(side=tk.RIGHT, fill=tk.Y)
|
|
||||||
self._hist_lb.pack(side=tk.LEFT, fill=tk.X, expand=True)
|
|
||||||
self._hist_lb.bind("<Double-Button-1>", self._on_hist_dblclick)
|
|
||||||
|
|
||||||
tk.Label(hist_outer, text="dbl-click to reload", bg=BG2, fg=FG_DIM,
|
tk.Label(hist_outer, text="dbl-click to reload", bg=BG2, fg=FG_DIM,
|
||||||
font=MONO_SM, anchor="e").pack(side=tk.RIGHT, padx=6)
|
font=MONO_SM, anchor="e").pack(side=tk.RIGHT, padx=6)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user