Exemplo n.º 1
0
 def handleViewMessage(self, scene, obj, message):
     if obj and (isinstance(obj, MatchedPair) or isinstance(obj, Nuc)):
         mp = obj if isinstance(obj, MatchedPair) else obj.context
         pair = self.processed_pair(mp)
         if pair.has_site:
             self.ui.pushScene(PairScene(self.ui, pair, expanded = True))
         else:
             self.ui.pushScene(RawPairScene(self.ui, pair, expanded = True))
     else:
         BaseScene.handleViewMessage(self, scene, obj, message)
Exemplo n.º 2
0
 def handleViewMessage(self, scene, obj, message):
     if "site" == message.get("event"):
         self.show_plot(message["L"], message["site"])
     elif "sel" == message.get("event"):
         self.selected_values = sorted(message["data"])
     elif "show_sel" == message.get("event"):
         self.show_selected_plot()
     elif obj and isinstance(obj, Site):
         self.show_plot_site(obj)
     else:
         BaseScene.handleViewMessage(self, scene, obj, message)
Exemplo n.º 3
0
 def handleViewMessage(self, scene, obj, message):
     if "site" == message.get("event"):
         self.show_plot(message["L"], message["site"])
     elif "sel" == message.get("event"):
         self.selected_values = sorted(message["data"])
     elif "show_sel" == message.get("event"):
         self.show_selected_plot()
     elif obj and isinstance(obj, Site):
         self.show_plot_site(obj)
     else:
         BaseScene.handleViewMessage(self, scene, obj, message)
Exemplo n.º 4
0
 def handleViewMessage(self, scene, obj, message):
     if obj and isinstance(obj, TagAction):
         self.ui.pushScene(Tagset(self.ui, obj.new_tags(self.incl_excl_tags)))
     else:
         BaseScene.handleViewMessage(self, scene, obj, message)
Exemplo n.º 5
0
 def handleViewMessage(self, scene, obj, message):
     if obj and 3 == len(obj):
         self.ui.pushScene(CotransTarget(self.ui, obj))
     else:
         BaseScene.handleViewMessage(self, scene, obj, message)
Exemplo n.º 6
0
 def handleViewMessage(self, scene, obj, message):
     if obj and 3 == len(obj):
         self.ui.pushScene(CotransTarget(self.ui, obj))
     else:
         BaseScene.handleViewMessage(self, scene, obj, message)
Exemplo n.º 7
0
 def handleViewMessage(self, scene, obj, message):
     if obj and isinstance(obj, TagAction):
         self.ui.pushScene(
             Tagset(self.ui, obj.new_tags(self.incl_excl_tags)))
     else:
         BaseScene.handleViewMessage(self, scene, obj, message)