Example #1
0
    def __init__( self, *args ):
        QCalendarWidget.__init__( self, *args )

        self.cellsTable = self.findChild( QTableView )

        self.taskColor = QColor( self.palette().color( QPalette.Highlight) )
        self.taskColor.setAlpha( 64 )
        self.occupiedColor = QColor( QColor(160, 160, 160) )
        self.occupiedColor.setAlpha( 64 )

        self.highlightModel = None
        self.selectionChanged.connect( self.updateCells )
Example #2
0
 def __init__(self,parent=None):
     QCalendarWidget.__init__(self,parent)