def parseId(self, responseId): # May have to reverse the procedure in getResponseIdSignature if "--" in responseId: return self.findChildWidget(WidgetAdapter.adapt(self.widget.action_area), responseId.replace("--", "=")) else: return getattr(gtk, "RESPONSE_" + responseId.upper())
def getAssociatedSignatures(cls, widget): return cls.getAllResponses(widget, WidgetAdapter.adapt(widget.action_area))