Loading multiple PNGs in pyglet window
<p>If I loaded two partially transparent PNGs in succession (onDraw), would I still be able to see the first image if the second image was transparent in that area? These images would be drawn into a window. I would use Sprites but I couldn't get them to work. Thanks!</p>

<p>There's no code in your question and quite frankly there's so many solutions to what I think is your problem that you could have at least 10 different answers here.</p>

<p>I'll vote to close this question but seeing as these are so rare and they usually don't get much response on either closing requests or down votes enough for people to care.. I'll give a example snippet of code that might get you on your way towards a working solution:</p>

<pre><code>import pyglet
from pyglet.gl import *

class main(pyglet.window.Window):
    def __init__ (self):
        super(main, self).__init__(300, 300, fullscreen = False)
        self.alive = 1

        self.image_one = pyglet.sprite.Sprite(pyglet.image.load('./image_one.png'))
        self.image_two = pyglet.sprite.Sprite(pyglet.image.load('./image_two.png'))

        self.image_one.x = 100
        self.image_one.y = 100

        self.image_two.x = 70
        self.image_two.y = 80

    def on_draw(self):
        self.render()

    def on_close(self):
        self.alive = 0

    def render(self):
        self.clear()

        self.image_one.draw()
        self.image_two.draw()

        self.flip()

    def run(self):
        while self.alive == 1:
            self.render()

            # -----------&gt; This is key &lt;----------
            # This is what replaces pyglet.app.run()
            # but is required for the GUI to not freeze
            #
            event = self.dispatch_events()

x = main()
x.run()
</code></pre>

<p>I used these two images:</p>

<ol>
<li><p><a href="http://i.stack.imgur.com/tW3Dz.png" rel="nofollow"><img src="http://i.stack.imgur.com/tW3Dz.png" alt="enter image description here"></a></p></li>
<li><p><a href="http://i.stack.imgur.com/SuQRp.png" rel="nofollow"><img src="http://i.stack.imgur.com/SuQRp.png" alt="enter image description here"></a></p></li>
</ol>

<p>Nothing fancy but it will give you an example of how to render two images using the <a href="http://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/api/pyglet/pyglet.sprite.html" rel="nofollow">Sprite</a> class.</p>

python pyglet