Python Forum

Full Version: [pyglet] Why is screen blank when displaying a gif when setting fullscreen = True ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(Sorry about my bad english, i'm brazillian)
I created one ui who open one animated gif, when in low screen it works perfectly, but when i add fullscreen = True it's just show me a black screen
Someone can help-me ?
Follow the code

from pyglet.window import pyglet

animation = pyglet.image.load_animation('1.gif')
animSprite = pyglet.sprite.Sprite(animation)

w = animSprite.width
h = animSprite.height

window = pyglet.window.Window(fullscreen = True)

def on_draw():