# HG changeset patch # User Drew Perttula # Date 2013-06-06 04:43:21 # Node ID 4b3d7e8ba24a63766298f1722d71143773075026 # Parent 43ddee394d28cc98a42b5dc73e2825f18e8f087f subcomposer is nicer if we always have some Submaster object. and if you call all the init code Ignore-this: 372122231f997f3301e23d69e96360fa diff --git a/bin/subcomposer b/bin/subcomposer --- a/bin/subcomposer +++ b/bin/subcomposer @@ -67,17 +67,20 @@ class Subcomposer(tk.Frame): self.graph = graph self.session = session - # this is a PersistentSubmaster (even for local) or None if we're not initialized - self.currentSub = Observable(None) + # this is a URIRef or Local + self._currentChoice = Observable(Local) - self._currentChoice = Observable(Local) + # this is a PersistentSubmaster (even for local) + self.currentSub = Observable(Submaster.PersistentSubmaster( + graph, self.makeLocal())) def pc(val): log.info("change viewed sub to %s", val) self._currentChoice.subscribe(pc) EditChoice(self, self.graph, self._currentChoice).frame.pack(side='top') - + self.setupSubChoiceLinks() + def setupSubChoiceLinks(self): def ann():