def adjust_signals(self): print "Adjust sources selected" dialog = SignalListEditorDialog(self.parent) descrs = [] for name in self.signals: descr = {"identifier":name, "color": [0.0, 0.0, 1.0, 1.0], "style": "solid"} descrs.append(descr) dialog.setup(descrs) def say_hi(*args): print "Hi", args link(dialog.signal_added, self.add_signal) link(dialog.signal_modified, say_hi) link(dialog.signal_removed, say_hi) dialog.show()
def adjust_signals(self): ## if self.showing_dialog: ## return dialog = SignalListEditorDialog(self) descrs = [] for name in self.views: descr = {"identifier":name, "color": [0.0, 0.0, 1.0, 1.0], "style": "solid"} descrs.append(descr) dialog.setup(descrs) ## def set_hidden(): ## self.showing_dialog = False ## ## link(dialog.closed, set_hidden) dialog.show() self.showing_dialog = True