Package: bambam
Version: 0.4.dfsg-2
Severity: wishlist
Tags: patch

Children in Poland usually begin their literacy education by using
upper-case letters. I guess the reason is that they are easier to write
and distinguish.

The attached patch adds a command-line flag to flip to using upper-case.
The default is still to use lower-case but I'd personally vote to switch
it.

BTW, my 18-month son loves this app, thanks!

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (600, 'precise-updates'), (600, 'precise-security'), (600, 
'precise'), (400, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5.0-28-generic (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bambam depends on:
ii  python-pygame  1.9.1release+dfsg-5

bambam recommends no packages.

bambam suggests no packages.

-- no debconf information
Index: bambam-0.4.dfsg/bambam.py
===================================================================
--- bambam-0.4.dfsg.orig/bambam.py	2013-05-13 12:03:52.000000000 +0200
+++ bambam-0.4.dfsg/bambam.py	2013-05-13 12:37:16.171299738 +0200
@@ -14,6 +14,7 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import pygame, sys,os, random, string
+import argparse
 from pygame.locals import * 
 
 # figure out the install base to use with image and sound loading
@@ -107,8 +108,13 @@
 # Prints a letter at a random location
 def print_letter(key):
     global screenheight, screenwidth
+    global args
     font = pygame.font.Font(None, 256)
-    text = font.render(chr(key), 1, colors[random.randint(0, len(colors) -1)])
+    if args.uppercase:
+        char = chr(key).upper()
+    else:
+        char = chr(key)
+    text = font.render(char, 1, colors[random.randint(0, len(colors) -1)])
     textpos = text.get_rect()
     center = (textpos.width / 2, textpos.height / 2)
     w = random.randint(0+center[0], screenwidth-center[0])
@@ -119,6 +125,10 @@
 
 # Main application
 #
+parser = argparse.ArgumentParser(description='A keyboard mashing game for babies.')
+parser.add_argument('-u', '--uppercase', action='store_true', help='Whether to show UPPER-CASE letters.')	
+args = parser.parse_args()
+
 if not pygame.font: print 'Warning, fonts disabled'
 if not pygame.mixer: print 'Warning, sound disabled'
  

Reply via email to