Skip to content

Commit

Permalink
Fixed additional data variable name/file/unit changing in Other-windo…
Browse files Browse the repository at this point in the history
…w; all variables had accidentally been pointing to the same tkinter-variables which caused forgetting of changed values.
  • Loading branch information
ArtoVi committed Oct 11, 2021
1 parent 0ce606d commit 00d966e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def add_data(self):
self.btns.append(tk.Button(self.frame, text='x', relief='raised',
command=lambda i=self.rwn: self.rmv_data(i)))
self.btns[self.rwn].grid(row=row, column=7, sticky='w')
var = [get_tkvar(self.insert[1]), get_tkvar(self.insert[2])]
var = [get_tkvar(self.insert[1].get()), get_tkvar(self.insert[2].get())]
self.handle('AddData').update({self.insert[0].get(): var})
self.rwn = self.rwn + 1
else:
Expand Down

0 comments on commit 00d966e

Please sign in to comment.