snakeware

Python-based Linux distro for x86-64 and RPi
git clone git://squid-tech.com/snakeware.git
Log | Files | Refs | README

commit 5947971b34f90b10a81bb49561bbd6a829ad7bf1
parent 5e31b0d79e1f5c809fbdc88b1f546850a3bcdcd4
Author: Josh Moore <jxm5210@g.rit.edu>
Date:   Thu, 28 May 2020 09:59:23 -0400

Fix documentation mistakes
Diffstat:
Msnakewm/apps/games/pong/__init__.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/snakewm/apps/games/pong/__init__.py b/snakewm/apps/games/pong/__init__.py @@ -3,14 +3,15 @@ from .pongwindow import PongWindow def load(manager, params): """ Create Pong game and add it to the UI manager. - params[0] should be the desired size, if other than default. + params[0] should be the desired position. A default + position will be used if a pos is not provided. """ - default_size = (50, 50) + default_pos = (50, 50) if params is not None and len(params) > 0: # create PongWindow of user-specified size PongWindow(params[0], manager) else: # create PongWindow of default size - PongWindow(default_size, manager) + PongWindow(default_pos, manager)