diff --git a/bin/subcomposer b/bin/subcomposer --- a/bin/subcomposer +++ b/bin/subcomposer @@ -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 --git a/light9/dmxchanedit.py b/light9/dmxchanedit.py --- a/light9/dmxchanedit.py +++ b/light9/dmxchanedit.py @@ -134,6 +134,7 @@ class Levelbox(tk.Frame): 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