# HG changeset patch # User drewp@bigasterisk.com # Date 1342606042 0 # Node ID 317c2d2e22da4b8689ef3e7c9bc38fc4e348e287 # Parent ce4fffe8e413987d5f514ced1ff5795320df7f6d SC channel sort Ignore-this: e97aabaf8011f385a661a519bdb3dd84 diff -r ce4fffe8e413 -r 317c2d2e22da bin/subcomposer --- 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 diff -r ce4fffe8e413 -r 317c2d2e22da light9/dmxchanedit.py --- 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