Skip to content

Commit

Permalink
Fix Cover button: trace -> trace_add
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Dec 10, 2024
1 parent 43b910a commit 4876d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ def __init__(self, parent, manifold):
degree_frame = ttk.Frame(top_frame)
degree_frame.grid_columnconfigure(1, weight=1)
self.degree_var = degree_var = Tk_.StringVar()
degree_var.trace('w', self.show_covers)
degree_var.trace_add('write', self.show_covers)
ttk.Label(degree_frame, text='Degree: ').grid(
row=0, column=0, sticky=Tk_.E)
self.degree_option = degree_option = ttk.OptionMenu(
Expand All @@ -899,7 +899,7 @@ def __init__(self, parent, manifold):
)
degree_option.grid(row=0, column=1)
self.cyclic_var = cyclic_var = Tk_.BooleanVar()
cyclic_var.trace('w', self.show_covers)
cyclic_var.trace_add('write', self.show_covers)
cyclic_or_not = ttk.Checkbutton(degree_frame,
variable=cyclic_var,
text='cyclic covers only',
Expand Down

0 comments on commit 4876d47

Please sign in to comment.