Mercurial > code > home > repos > light9
comparison bin/subcomposer @ 1164:65f0179a9254
subcomposer has a web ui with buttons for toggling lights
Ignore-this: f8cf76c46d81eec86c8945a61f6a594d
author | drewp@bigasterisk.com |
---|---|
date | Sun, 15 Jun 2014 02:23:39 +0000 |
parents | 0923efae4588 |
children | ce8a71fab284 |
comparison
equal
deleted
inserted
replaced
1163:9973d4623928 | 1164:65f0179a9254 |
---|---|
37 from light9.tkdnd import initTkdnd | 37 from light9.tkdnd import initTkdnd |
38 from light9.namespaces import L9 | 38 from light9.namespaces import L9 |
39 from light9.rdfdb.patch import Patch | 39 from light9.rdfdb.patch import Patch |
40 from light9.observable import Observable | 40 from light9.observable import Observable |
41 from light9.editchoice import EditChoice, Local | 41 from light9.editchoice import EditChoice, Local |
42 from light9.subcomposer import subcomposerweb | |
42 | 43 |
43 | 44 |
44 class Subcomposer(tk.Frame): | 45 class Subcomposer(tk.Frame): |
45 """ | 46 """ |
46 <session> l9:currentSub ?sub is the URI of the sub we're tied to for displaying and | 47 <session> l9:currentSub ?sub is the URI of the sub we're tied to for displaying and |
233 | 234 |
234 def launch(opts, args, root, graph, session): | 235 def launch(opts, args, root, graph, session): |
235 if not opts.no_geometry: | 236 if not opts.no_geometry: |
236 toplevelat("subcomposer - %s" % opts.session, root, graph, session) | 237 toplevelat("subcomposer - %s" % opts.session, root, graph, session) |
237 | 238 |
239 | |
238 sc = Subcomposer(root, graph, session) | 240 sc = Subcomposer(root, graph, session) |
239 sc.pack() | 241 sc.pack() |
242 | |
243 subcomposerweb.init(graph, session, sc.currentSub) | |
240 | 244 |
241 tk.Label(root,text="Bindings: B1 adjust level; B2 set full; B3 instant bump", | 245 tk.Label(root,text="Bindings: B1 adjust level; B2 set full; B3 instant bump", |
242 font="Helvetica -12 italic",anchor='w').pack(side='top',fill='x') | 246 font="Helvetica -12 italic",anchor='w').pack(side='top',fill='x') |
243 | 247 |
244 if len(args) == 1: | 248 if len(args) == 1: |