Skip to content

Commit

Permalink
Merge pull request #5858 from erm3nda/master
Browse files Browse the repository at this point in the history
Fixed PEP8 in Pong examples
  • Loading branch information
Armin Sebastian committed Aug 6, 2018
2 parents 35aaae1 + 7664780 commit a95212d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
5 changes: 3 additions & 2 deletions examples/tutorials/pong/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ReferenceListProperty,\
ObjectProperty
from kivy.properties import (
NumericProperty, ReferenceListProperty, ObjectProperty
)
from kivy.vector import Vector
from kivy.clock import Clock

Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/pong/pong.kv
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

canvas:
Rectangle:
pos: self.center_x-5, 0
pos: self.center_x - 5, 0
size: 10, self.height

Label:
Expand All @@ -47,7 +47,7 @@

PongPaddle:
id: player_right
x: root.width-self.width
x: root.width - self.width
center_y: root.center_y


2 changes: 1 addition & 1 deletion examples/tutorials/pong/steps/step3/pong.kv
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PongGame>:
canvas:
Rectangle:
pos: self.center_x-5, 0
pos: self.center_x - 5, 0
size: 10, self.height

Label:
Expand Down
5 changes: 3 additions & 2 deletions examples/tutorials/pong/steps/step4/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ReferenceListProperty,\
ObjectProperty
from kivy.properties import (
NumericProperty, ReferenceListProperty, ObjectProperty
)
from kivy.vector import Vector
from kivy.clock import Clock
from random import randint
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/pong/steps/step4/pong.kv
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

canvas:
Rectangle:
pos: self.center_x-5, 0
pos: self.center_x - 5, 0
size: 10, self.height

Label:
Expand Down
5 changes: 3 additions & 2 deletions examples/tutorials/pong/steps/step5/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ReferenceListProperty,\
ObjectProperty
from kivy.properties import (
NumericProperty, ReferenceListProperty, ObjectProperty
)
from kivy.vector import Vector
from kivy.clock import Clock

Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/pong/steps/step5/pong.kv
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

canvas:
Rectangle:
pos: self.center_x-5, 0
pos: self.center_x - 5, 0
size: 10, self.height

Label:
Expand All @@ -47,7 +47,7 @@

PongPaddle:
id: player_right
x: root.width-self.width
x: root.width - self.width
center_y: root.center_y


0 comments on commit a95212d

Please sign in to comment.