00:01
This question wants us to revise the bouncing balls program by adding two new buttons faster and slower.
00:06
And these buttons should change how quickly the animation updates.
00:09
In this program, the speed is controlled by sleep time.
00:12
A smaller sleep time makes the balls move faster and a larger sleep time makes them move slower.
00:18
So you need to add two buttons faster and slower.
00:30
Speed is controlled by self -dot sleep time.
00:43
With a capital t.
00:47
And the rule is smaller sleep time equals faster, and a larger sleep time equals slower.
01:03
So first, in the button section, we create two more buttons and connect them to two new methods.
01:09
So bt faster equals button, parentheses, frame, comma, text equals, in quotation, faster, comma, command equals self.
01:21
Faster, parentheses.
01:22
Bt faster.
01:23
Dot pack, parentheses side equals left, parenthesis...