aboutsummaryrefslogtreecommitdiff
path: root/xsft.py
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2015-10-19 20:23:04 -0400
committerNicholas Bishop <nicholasbishop@gmail.com>2015-10-19 20:23:04 -0400
commite6159ba541e542cf8028229638c20a67b80fc7a0 (patch)
treeba8a8094047eceb394de2a98afa0234a05a1667a /xsft.py
parentFix import warning (diff)
downloadxbright-e6159ba541e542cf8028229638c20a67b80fc7a0.tar.gz
xbright-e6159ba541e542cf8028229638c20a67b80fc7a0.tar.bz2
xbright-e6159ba541e542cf8028229638c20a67b80fc7a0.zip
Apply saved values on startup
Diffstat (limited to 'xsft.py')
-rwxr-xr-xxsft.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/xsft.py b/xsft.py
index 469d859..0d3b432 100755
--- a/xsft.py
+++ b/xsft.py
@@ -94,6 +94,9 @@ class MyWindow(Gtk.Window):
self.box.add(Gtk.Label('Temperature (K)'))
self.temperature = self.add_hscale(1000, 25000, conf.temperature)
+ # Update immediately so that saved values are loaded on startup
+ self.update()
+
def add_hscale(self, min_val, max_val, def_val):
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, digits=0)
scale.set_range(min_val, max_val)
bgstack15