示例#1
0
 def mousePressEvent( self, event ):
     """
     Changes the current date to the clicked on date.
     
     :param      event | <QMousePressEvent>
     """
     XPopupWidget.hideToolTip()
     
     # update the current date
     self.setCurrentDate(self.dateAt(event.scenePos()))
     
     super(XCalendarScene, self).mousePressEvent(event)
示例#2
0
 def mousePressEvent( self, event ):
     """
     Changes the current date to the clicked on date.
     
     :param      event | <QMousePressEvent>
     """
     XPopupWidget.hideToolTip()
     
     # update the current date
     self.setCurrentDate(self.dateAt(event.scenePos()))
     
     super(XCalendarScene, self).mousePressEvent(event)