From e6159ba541e542cf8028229638c20a67b80fc7a0 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Mon, 19 Oct 2015 20:23:04 -0400 Subject: Apply saved values on startup --- xsft.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xsft.py') 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) -- cgit