def onCellClicked(self, grid, row, col):
        if row == 0:
            return
        text = grid.getText(row, col).strip()
        if text == "":
            return
        try:
            selectedDay = int(text)
        except __HOLE__, e:
            return

        self.fireDateSelectedEvent(date(
            self.currentYear,
            self.currentMonth,
            selectedDay,
            ))
        self.setVisible(False)
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/ui/Calendar.py/Calendar.onCellClicked