- if touse_outputs == enabled_outputs:
- # If the touse_outputs list is the same as the enabled_outputs
- # list, then presumably there is no change made
- print 'Identical'
- else:
- # Determine which outputs to turn off, and which to turn on
- off_outputs = [output for output in enabled_outputs if output not in
- touse_outputs]
- print_outputs('Turn these off', off_outputs)
- on_outputs = [output for output in touse_outputs if output not in
- enabled_outputs]
- print_outputs('Turn these on', on_outputs)
-
- if len(enabled_outputs) < 1 or len(enabled_outputs) > 2 or \
- len(touse_outputs) < 1 or len(touse_outputs) > 2:
- print 'Something is wrong; doing nothing'
- return
-
- # Compute positions for final outputs
- posx = 0
- for output in touse_outputs:
- output['posx'] = posx
- output['posy'] = 0
- posx += output['width']
- print_outputs('touse, with positions', touse_outputs)
-
+ # Determine which outputs to turn off, and which to turn on
+ off_outputs = [output for output in enabled_outputs if output not in
+ touse_outputs]
+ print_outputs('Turn these off', off_outputs)
+ on_outputs = [output for output in touse_outputs if output not in
+ enabled_outputs]
+ print_outputs('Turn these on', on_outputs)
+
+ if len(enabled_outputs) < 1 or len(enabled_outputs) > 2 or \
+ len(touse_outputs) < 1 or len(touse_outputs) > 2:
+ print 'Something is wrong; doing nothing'
+ return
+
+ # Compute positions for final outputs
+ posx = 0
+ for output in touse_outputs:
+ output['posx'] = posx
+ output['posy'] = 0
+ posx += output['width']
+ print_outputs('touse, with positions', touse_outputs)
+
+ if touse_outputs != enabled_outputs: