Mercurial > code > home > repos > light9
comparison light8/rsn.py @ 35:3cbe7110d8f7
cleanup imports, fix backwards colors in changing level direction
cleanup imports, fix backwards colors in changing level direction
indicators
author | dmcc |
---|---|
date | Sun, 07 Jul 2002 12:11:42 +0000 |
parents | 411de8b46aef |
children | 2443de5df9c5 |
comparison
equal
deleted
inserted
replaced
34:411de8b46aef | 35:3cbe7110d8f7 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 from __future__ import nested_scopes | 2 from __future__ import nested_scopes |
3 | 3 |
4 from Tkinter import * | 4 from Tkinter import * |
5 from time import sleep | 5 from time import sleep |
6 from signal import * | 6 from signal import signal, SIGINT |
7 import sys, thread, cPickle, math | 7 import sys, cPickle |
8 | 8 |
9 import io | 9 import io |
10 from uihelpers import * | 10 from uihelpers import * |
11 from panels import * | 11 from panels import * |
12 from Xfader import * | 12 from Xfader import * |
110 self.leveldisplay.number_labels): | 110 self.leveldisplay.number_labels): |
111 if lev != oldlev: | 111 if lev != oldlev: |
112 lab.config(text="%d" % lev) | 112 lab.config(text="%d" % lev) |
113 colorlabel(lab) | 113 colorlabel(lab) |
114 if lev < oldlev: | 114 if lev < oldlev: |
115 numlab['bg'] = 'blue' | |
116 else: | |
115 numlab['bg'] = 'red' | 117 numlab['bg'] = 'red' |
116 else: | |
117 numlab['bg'] = 'blue' | |
118 else: | 118 else: |
119 numlab['bg'] = 'lightPink' | 119 numlab['bg'] = 'lightPink' |
120 | 120 |
121 self.oldlevels = levels[:] | 121 self.oldlevels = levels[:] |
122 | 122 |