def deactivate(self)"sets this button to 'inactiveself label setfill('darkgrey'self rect setwidth( self active false you should study the constructor in this class to make sure you understand all of the instance variables and how they are initialized button is positioned by providing center pointwidthand height other instance variables are calculated from these parameters building dice now we'll turn our attention to the dieview class the purpose of this class is to display the value of die in graphical fashion the face of the die will be square (via rectangleand the pips will be circles our dieview will have the following interfaceconstructor create die in window we will have to specify the windowthe center point of the dieand the size of the die as parameters setvalue change the view to show given value the value to display will be passed as parameter obviouslythe heart of dieview is turning various pips "onand "offto indicate the current value of the die one simple approach is to pre-place circles in all the possible locations where pip might be and then turn them on or off by changing their colors using the standard position of pips on diewe will need seven circlesthree down the left edgethree down the right edgeand one in the center the constructor will create the background square and the seven circles the setvalue method will set the colors of the circles based on the value of the die without further adohere is the code for our dieview class the comments will help you to follow how it worksdieview py from graphics import class dieview""dieview is widget that displays graphical representation of standard six-sided die ""def __init__(selfwincentersize)"""create view of diee gdie(mywinpoint( , ) creates die centered at ( , having sides