Python Forum
[pyglet] Why is screen blank when displaying a gif when setting fullscreen = True ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[pyglet] Why is screen blank when displaying a gif when setting fullscreen = True ?
#1
(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)
                              


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



pyglet.app.run()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to check if window is fullscreen or not delphinis 2 3,816 Aug-01-2020, 01:21 PM
Last Post: delphinis
  Background Image FullScreen oguzcan 5 8,593 Apr-26-2020, 10:13 PM
Last Post: Larz60+
  [Kivy] Blank Screen Exsul 2 4,397 Sep-30-2019, 10:55 AM
Last Post: raajkumar
  Need help with a simple slideshow that uses pyglet Steven_04 1 2,569 Mar-23-2019, 03:43 PM
Last Post: Larz60+
  [Tkinter] Python 3.5 tk fullscreen nuska012 2 7,987 Dec-11-2018, 06:56 AM
Last Post: jfong
  [Tkinter] Multiple frames with tkinter - How to make them run on fullscreen mode eabs86 3 18,256 Sep-20-2018, 01:27 AM
Last Post: eabs86

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020