diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2011-03-26 16:21:31 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-03-26 16:21:31 (GMT) |
commit | 59222086fbe2b555c537c3e8213a84efc0786b37 (patch) | |
tree | 0157b988459415e51e26683b7c2a75ebe2e12377 /atm_toolbars.py | |
parent | c547b091a65aa3411fce75a6fcbd90be5998c4bf (diff) |
Adding num controls to Temp
Diffstat (limited to 'atm_toolbars.py')
-rw-r--r-- | atm_toolbars.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/atm_toolbars.py b/atm_toolbars.py index 221b8ae..130162d 100644 --- a/atm_toolbars.py +++ b/atm_toolbars.py @@ -80,7 +80,7 @@ class TempToolbar(gtk.Toolbar): def set_temp(self, t): try: - self._temp_field.set_text(locale.str(t)) + self._temp_field.set_text(locale.str(max(-20,min(70,t)))) return True except: return False |