[pygame] android pygame app not functioning
I am able to get the following code to build and create apk, following the instructions at http://pygame.renpy.org/android-packaging.html. It installs normally on the android device, but when I run it flashes junk and goes away. The only abnormal things I can see are when it configures and builds: pgs4a-0.9.4/$./android.py configure apps/test buildlib/jinja2.egg/jinja2/__init__.py:31: UserWarning: Module colorama was already imported from buildlib/colorama/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path __version__ = __import__('pkg_resources') \ pgs4a-0.9.4/$ ./android.py build apps/test/ release buildlib/jinja2.egg/jinja2/__init__.py:31: UserWarning: Module colorama was already imported from buildlib/colorama/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path __version__ = __import__('pkg_resources') \ Here is the code: import pygame import pygame.font import pygame.event import pygame.draw import string from pygame.locals import * black=(0,0,0) green=(0,255,0) #Tne next step is to make a function to create the display box. def display_box(screen,mess): fontobject = pygame.font.Font(None,18) pygame.draw.rect(screen,black,((screen.get_width() / 2) - 100, (screen.get_height() / 2) - 10,200,20), 0) pygame.draw.rect(screen,green,((screen.get_width() / 2) - 101, (screen.get_height() / 2) - 11,200,20), 1) if len(mess) != 0: screen.blit(fontobject.render(mess, 1, (25,255,25)), ((screen.get_width() / 2) - 100, (screen.get_height() / 2) - 9)) pygame.display.flip() #Let's start the pygame window and display the box. if __name__ == '__main__': pygame.init() pygame.display.set_caption(Hello world) screen = pygame.display.set_mode((320,240)) pygame.font.init() mess = [] while 1: display_box(screen,Hello world text) pygame.display.update() pygame.time.delay(10) for event in pygame.event.get(): if event.type in (pygame.QUIT,pygame.KEYDOWN,pygame.MOUSEBUTTONDOWN): raise SystemExit
Re: [pygame] Mailing List Discard Tweak
ditto. thanks Ian for the suggestion. On 6/12/15, Ian Mallett geometr...@gmail.com wrote: Hi all, I use GMail as my mailer client. The email associated with this account is *geometrianatgmail.com http://gmail.com*. However, I use GMail to send from my personal email *ianatgeometrian.com http://geometrian.com* (and this is the default). I am subscribed to the mailing list under the *first*. It seems that the pygame mailing list silently rejects emails from addresses that are not registered, to the effect that emails from my personal email are silently discarded. The effect is that I have been having one-sided conversations with myself for years, every time I forget to use *geometrianatgmail.com http://gmail.com*. *I propose that messages from emails not subscribed to the list be rejected with a message informing the sender of such*. I have unsubscribed the GMail address and subscribed the personal address, fixing the problem, hopefully. However, I still recommend the above action. Thanks, Ian -- Faced with the possibility of its extinction, every species finds within itself powers unimaginable in the days of its complacency.
Re: [pygame] Mailing List Discard Tweak
The only snag with sending reject replies is that it's then open to abuse. If I took a dislike to someone (not a subscriber), I could send hundreds of emails to the list, spoofing his email address as the sender. He'd then get his inbox swamped. It's some standard mailing list software which may or may not have the capability to rate-limit reject messages. Regards - Philip On 13/06/2015 20:25, tom arnall wrote: ditto. thanks Ian for the suggestion. On 6/12/15, Ian Mallett geometr...@gmail.com wrote: Hi all, I use GMail as my mailer client. The email associated with this account is *geometrianatgmail.com http://gmail.com*. However, I use GMail to send from my personal email *ianatgeometrian.com http://geometrian.com* (and this is the default). I am subscribed to the mailing list under the *first*. It seems that the pygame mailing list silently rejects emails from addresses that are not registered, to the effect that emails from my personal email are silently discarded. The effect is that I have been having one-sided conversations with myself for years, every time I forget to use *geometrianatgmail.com http://gmail.com*. *I propose that messages from emails not subscribed to the list be rejected with a message informing the sender of such*. I have unsubscribed the GMail address and subscribed the personal address, fixing the problem, hopefully. However, I still recommend the above action. Thanks, Ian