Question: I need help with the following assignment, I cannot figure out how to get the count to display in the box/button inside the widget. This

I need help with the following assignment, I cannot figure out how to get the count to display in the box/button inside the widget.

I need help with the following assignment, I cannot figure out how

This is the double die roller program:

from button import Button from die_view import DieView from graphics import * def main(): win = GraphWin("Double Die Roller", 200, 200) win.setBackground( 'dark green' ) dieView1 = DieView( win, Point( 50, 60 ), 80 ) dieView2 = DieView( win, Point( 150, 60 ), 80 ) rollButton = Button( win, Point( 100, 160), 100, 40, "Roll!" ) while True: mouseClick = win.getMouse() if rollButton.wasClickedIn( mouseClick ): dieView1.roll() dieView2.roll() main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!