def onWindowKeyPress( self, widget, event ): if event.keyval == Gdk.KEY_Escape: self.hide() return True return False