Hey there,
Trying to get started with building applications for fun with pyglet, and 
I've hit some issues with py2app not creating a functional applet when 
loading images. Here is my main.py:

import pyglet

window = pyglet.window.Window()
image = pyglet.resource.image('pyglet.png')

@window.event
def on_draw():
    window.clear()
    image.blit(0, 0)

pyglet.app.run()

After that I build the application with py2app in alias mode using the 
Terminal commands:
-> py2applet --make-setup main.py
-> python setup.py py2app -A

Then I open the application:
-> open dist/Denizen.app

This simply opens a dialog box that says "main Error" and gives me the 
options to open the Console (which says nothing more than "main Error" 
itself) or cancel. If I change my program instead to:

import pyglet

window = pyglet.window.Window()

@window.event
def on_draw():
    window.clear()

pyglet.app.run()

And then:
-> open dist/Denizen.app

The application works as expected. Any ideas? I am running OS X version 
10.9.1 with python 2.6.7, pyglet version 1.2 alpha, and py2app version 0.7.3

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to