Mercurial > code > home > repos > light9
changeset 804:317c2d2e22da
SC channel sort
Ignore-this: e97aabaf8011f385a661a519bdb3dd84
author | drewp@bigasterisk.com |
---|---|
date | Wed, 18 Jul 2012 10:07:22 +0000 |
parents | ce4fffe8e413 |
children | 54732a2f9935 |
files | bin/subcomposer light9/dmxchanedit.py |
diffstat | 2 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/subcomposer Wed Jul 18 09:59:10 2012 +0000 +++ b/bin/subcomposer Wed Jul 18 10:07:22 2012 +0000 @@ -1,7 +1,6 @@ #!bin/python from __future__ import division, nested_scopes -import sys,os,time,atexit from optparse import OptionParser import Tkinter as tk import louie as dispatcher
--- a/light9/dmxchanedit.py Wed Jul 18 09:59:10 2012 +0000 +++ b/light9/dmxchanedit.py Wed Jul 18 10:07:22 2012 +0000 @@ -134,6 +134,7 @@ self.levels = [] # Onelevel objects chans = list(self.graph.subjects(RDF.type, L9.Channel)) + chans.sort(key=lambda c: int(self.graph.value(c, L9.output).rsplit('/c')[-1])) cols = 2 rows = len(chans) // cols