From 645abe08b92bef2e7d1e8b1e6ef76b01cc4a48bf Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Sat, 20 Nov 2021 14:03:17 +0000 Subject: [PATCH] Fix FloatAdj bug. --- gui/widgets/adjuster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/widgets/adjuster.py b/gui/widgets/adjuster.py index 2368938..2c92e04 100644 --- a/gui/widgets/adjuster.py +++ b/gui/widgets/adjuster.py @@ -66,7 +66,7 @@ class FloatAdj(Adjuster): self.map_func = map_func self.facb = callback - self.args = args + self.fargs = args self.fstr = fstr self.lbl = Label(wri, row, col, lbl_width, bdcolor=color) @@ -78,7 +78,7 @@ class FloatAdj(Adjuster): def cb(self, adj): # Runs on init and when value changes self.lbl.value(self.fstr.format(self.mapped_value())) - self.facb(self, *self.args) # Run user callback + self.facb(self, *self.fargs) # Run user callback def mapped_value(self): return self.map_func(self.value())