Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c6632 commit c83c415Copy full SHA for c83c415
1 file changed
examples/event_handling/pipong.py
@@ -124,8 +124,10 @@ class Game:
124
def __init__(self, ax):
125
# create the initial line
126
self.ax = ax
127
- ax.set_ylim([-1, 1])
+ ax.xaxis.set_visible(False)
128
ax.set_xlim([0, 7])
129
+ ax.yaxis.set_visible(False)
130
+ ax.set_ylim([-1, 1])
131
pad_a_x = 0
132
pad_b_x = .50
133
pad_a_y = pad_b_y = .30
@@ -168,7 +170,6 @@ def __init__(self, ax):
168
170
self.res = 100.0
169
171
self.on = False
172
self.inst = True # show instructions from the beginning
- self.background = None
173
self.pads = [Pad(pA, pad_a_x, pad_a_y),
174
Pad(pB, pad_b_x, pad_b_y, 'r')]
175
self.pucks = []
0 commit comments