diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-10-19 20:23:04 -0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-10-19 20:23:04 -0400 |
commit | e6159ba541e542cf8028229638c20a67b80fc7a0 (patch) | |
tree | ba8a8094047eceb394de2a98afa0234a05a1667a /xsft.py | |
parent | Fix import warning (diff) | |
download | xbright-e6159ba541e542cf8028229638c20a67b80fc7a0.tar.gz xbright-e6159ba541e542cf8028229638c20a67b80fc7a0.tar.bz2 xbright-e6159ba541e542cf8028229638c20a67b80fc7a0.zip |
Apply saved values on startup
Diffstat (limited to 'xsft.py')
-rwxr-xr-x | xsft.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |