Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何删除pyglet中的标题栏,I';我正在做一个精彩的介绍_Python_Pyglet - Fatal编程技术网

Python 如何删除pyglet中的标题栏,I';我正在做一个精彩的介绍

Python 如何删除pyglet中的标题栏,I';我正在做一个精彩的介绍,python,pyglet,Python,Pyglet,这是我的密码: 我不知道如何删除pyglet中的标题栏,我正在制作一个splash简介。请帮帮我谢谢 ag_file = "splash.gif" animation = pyglet.resource.animation(ag_file) sprite = pyglet.sprite.Sprite(animation) win = pyglet.window.Window(width=sprite.width, height=sprite.height) win.set_location(

这是我的密码: 我不知道如何删除pyglet中的标题栏,我正在制作一个splash简介。请帮帮我谢谢

ag_file = "splash.gif"

animation = pyglet.resource.animation(ag_file)
sprite = pyglet.sprite.Sprite(animation)

win = pyglet.window.Window(width=sprite.width, height=sprite.height)
win.set_location(325, 225)

@win.event
def on_draw():
    win.clear()
    sprite.draw()

def close(event):
    win.close()

pyglet.clock.schedule_once(close, 9.0)


pyglet.app.run()

我已经弄明白了!!!这是我的密码:

ag_file = "splash.gif"

animation = pyglet.resource.animation(ag_file)
sprite = pyglet.sprite.Sprite(animation)

win = pyglet.window.Window(width=sprite.width, height=sprite.height, style = 'borderless')
win.set_location(325, 225)

@win.event
def on_draw():
    win.clear()
    sprite.draw()

def close(event):
    win.close()

pyglet.clock.schedule_once(close, 9.0)

pyglet.app.run()