On Mar 24, 6:08 pm, cetacean <[email protected]> wrote:
> Hi everyone,
>
> I'm working with some text and image display routines on Windows
> XP and having an odd problem. When I try to display the text or image
> in the default window style, everything goes as planned. When I use
> excatly the same code with a borderless window, all I get is a black
> screen.
I think there might be something else in the code going on; I tried
the following example:
<code>
import pyglet
window = pyglet.window.Window(
512,
512,
visible=False,
style =
pyglet.window.Window.WINDOW_STYLE_BORDERLESS)
label = pyglet.text.Label('Hello borderless',
font_name='Times New Roman',
font_size=32,
bold=True,
x=window.width//2, y=window.height//2,
anchor_x='center', anchor_y='center')
@window.event
def on_draw():
window.clear()
label.draw()
window.clear()
window.flip()
window.set_visible(True)
if __name__ == '__main__':
pyglet.app.run()
</code>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---