Beispiel #1
0
 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())
Beispiel #2
0
 def getAssociatedSignatures(cls, widget):
     return cls.getAllResponses(widget, WidgetAdapter.adapt(widget.action_area))